/* Student Tools by Likhora — shared stylesheet.
   Brand: Ink & Paper + new brand kit. Emerald #059669 primary,
   amber #D97706 accent, Fraunces headings, Inter body, paper bg.
   Plain static site: no build step, no framework, no tracking. */

:root {
  --paper: #faf6ef;
  --paper-2: #f4eee1;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --ink-faint: #6f6a61;
  --line: #e5ddd0;
  --brand: #059669;
  --brand-deep: #047857;
  --brand-dark: #065f46;
  --brand-soft: #ecfdf5;
  --accent: #d97706;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; max-width: 1080px; margin: 0 auto; padding: 14px 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 21px; }
.brand img { width: 30px; height: 30px; }
.brand small { font-family: Inter, sans-serif; font-weight: 600; font-size: 12px; color: var(--ink-faint); letter-spacing: .08em; text-transform: uppercase; margin-left: 2px; }

/* buttons */
.btn {
  display: inline-block; border: none; border-radius: 14px; padding: 13px 22px;
  min-height: 48px; font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }

/* hero */
.hero { text-align: center; padding: 36px 16px 8px; max-width: 760px; margin: 0 auto; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -8px 0 auto; height: 260px;
  background: radial-gradient(closest-side, rgba(5, 150, 105, .14), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero h1 { font-size: clamp(34px, 8.5vw, 60px); margin: 0; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { color: var(--ink-soft); font-size: 18px; margin: 16px 0 0; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.trust { margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--brand-deep); }

/* tool grid */
.grid { display: grid; gap: 16px; padding: 36px 16px 8px; max-width: 1080px; margin: 0 auto; }
.card {
  display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; text-decoration: none; color: inherit;
  border-top: 4px solid var(--brand);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(28, 25, 23, .09); }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 30px; padding: 0 10px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
}
.card h3 { margin: 12px 0 4px; font-size: 20px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.card .go { display: block; margin-top: 12px; font-weight: 600; font-size: 14px; color: var(--brand-deep); }

/* app promo */
.promo {
  max-width: 1080px; margin: 48px auto 8px; padding: 40px 24px;
  background: var(--brand-dark); color: #fff; border-radius: 20px; text-align: center;
}
.promo h2 { margin: 0 0 8px; font-size: clamp(26px, 5vw, 36px); }
.promo p { margin: 0 auto; color: #d1fae5; max-width: 620px; }
.promo .feats {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center;
  margin: 20px 0 26px; padding: 0; list-style: none; font-size: 14.5px; font-weight: 600;
}
.promo .btn { background: #fff; color: var(--brand-dark); }
.promo .btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }

/* tool pages */
.tool-head { max-width: 760px; margin: 0 auto; padding: 28px 16px 0; }
.back { font-size: 14px; font-weight: 600; text-decoration: none; }
.tool-head h1 { font-size: clamp(30px, 7vw, 44px); margin: 10px 0 6px; }
.tool-head p { color: var(--ink-soft); margin: 0; }
.formula {
  max-width: 760px; margin: 20px auto 0; padding: 14px 18px; border-radius: 12px;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  font-size: 14.5px; color: var(--brand-deep);
}
.tool-body { max-width: 760px; margin: 0 auto; padding: 20px 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14.5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; font: inherit; font-size: 16px; color: var(--ink);
  /* 16px stops iOS Safari auto-zooming the page when an input is tapped. */
}
.field textarea { min-height: 150px; resize: vertical; }
.rows { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 1fr 110px 110px auto; gap: 8px; align-items: end; }
.row button { padding: 12px 10px; min-width: 44px; min-height: 44px; }
.hint { font-size: 13px; color: var(--ink-faint); margin-top: 4px; }
.result {
  margin-top: 22px; padding: 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
}
.result .big { font-family: Fraunces, Georgia, serif; font-size: 40px; font-weight: 700; color: var(--brand-deep); }
.result .detail { color: var(--ink-soft); margin: 6px 0 0; }
.result .warn { color: #b45309; font-weight: 600; }
.note { font-size: 13.5px; color: var(--ink-faint); margin-top: 14px; }
.mini-promo {
  margin-top: 28px; padding: 22px; border-radius: var(--radius);
  background: var(--paper-2); border: 1px solid var(--line); text-align: center;
}
.mini-promo p { margin: 0 0 14px; color: var(--ink-soft); }

/* footer */
footer {
  max-width: 1080px; margin: 48px auto 0; padding: 28px 16px 32px;
  border-top: 1px solid var(--line); text-align: center; font-size: 13.5px; color: var(--ink-soft);
}
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-bottom: 10px; }

/* FAQ + related tools (SEO + wayfinding) */
.faq { max-width: 760px; margin: 36px auto 0; padding: 0 16px; }
.faq h2 { font-size: clamp(24px, 5vw, 30px); margin: 0 0 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 15.5px; }
.faq details p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.related { max-width: 760px; margin: 28px auto 0; padding: 0 16px; }
.related h2 { font-size: 20px; margin: 0 0 10px; }
.related ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }

/* phones: stack GPA rows, keep the nav + buttons thumb-friendly */
@media (max-width: 560px) {
  .nav { padding: 12px; }
  .brand { font-size: 18px; }
  .brand small { display: none; }
  .nav .btn { padding: 11px 14px; font-size: 14px; }
  .hero { padding-top: 24px; }
  .hero p { font-size: 16.5px; }
  .hero .ctas .btn { width: 100%; }
  .card { padding: 18px; }
  .tool-head { padding-top: 20px; }
  .row { grid-template-columns: 1fr 1fr; }
  .row .field:first-child { grid-column: 1 / -1; }
  .row button { grid-column: 2; justify-self: end; }
  .result .big { font-size: 34px; }
  .promo { padding: 32px 18px; margin-left: 12px; margin-right: 12px; }
  .faq, .related { padding: 0 12px; }
}

@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .rows.two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* Laptop+ screens: fluid shell, same rule as the main Likhora site —
   the layout auto-adjusts to any screen size. Content takes 96% of the
   viewport up to 1600px (tool forms stop at 1000px so inputs stay
   usable), instead of sitting in a fixed 1080px box with big empty
   sides on laptops. */
@media (min-width: 1200px) {
  .nav { max-width: min(96vw, 1600px); padding-left: clamp(16px, 3vw, 48px); padding-right: clamp(16px, 3vw, 48px); }
  .grid, .promo, footer { max-width: min(96vw, 1600px); }
  .hero { max-width: min(94vw, 1000px); }
  .tool-head, .formula, .tool-body { max-width: min(94vw, 1000px); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
