/* The landing page: edufiapp.com and /pt-br/. Every colour, size and curve is a token from
   docs/design-system/tokens.json (the Evergreen look); the fonts are the apps' own, self-hosted. */

@font-face { font-family: "Literata"; font-weight: 700; font-display: swap; src: url("/assets/fonts/literata_bold.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url("/assets/fonts/literata_semibold.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap; src: url("/assets/fonts/hanken_grotesk_regular.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-display: swap; src: url("/assets/fonts/hanken_grotesk_semibold.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --primary: #066b53; --on-primary: #ffffff; --primary-container: #9ff3d4; --on-primary-container: #002117;
  --secondary: #7c5800; --secondary-container: #ffdea7; --on-secondary-container: #271900;
  --tertiary: #426085; --tertiary-container: #d2e4ff; --on-tertiary-container: #001c37;
  --surface: #fff8f3; --on-surface: #1f1b16; --on-surface-variant: #48473a;
  --surface-low: #fbf2e9; --surface-container: #f5ece4; --surface-high: #efe7de; --surface-dim: #e1d9d0;
  --outline: #797869; --outline-variant: #cac7b6; --deep: #002117; --gold: #fabc3a;
  --bucket-fixed: #5b799f; --bucket-invest: #2f856b; --bucket-save: #9b6f00; --bucket-guilt-free: #a86086;
  --ahead-container: #a3f5aa; --on-ahead-container: #002108;
  --shadow-float: 0 6px 20px rgba(24, 28, 32, 0.14);
  --phone-body: #262421; --phone-rim: #3d3a35;
  --radius-sm: 12px; --radius-md: 16px; --radius-lg: 20px; --radius-xl: 28px; --radius-full: 999px;
  --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1); --ease-decelerate: cubic-bezier(0, 0, 0, 1);
  --display: "Literata", Georgia, serif; --text: "Hanken Grotesk", system-ui, sans-serif;
  --lockup: url("/assets/lockup.svg");
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #84d6b8; --on-primary: #00382a; --primary-container: #00513e; --on-primary-container: #9ff3d4;
    --secondary: #f5bd4a; --secondary-container: #5e4200; --on-secondary-container: #ffdea7;
    --tertiary: #aac9f2; --tertiary-container: #26486c; --on-tertiary-container: #d2e4ff;
    --surface: #17130f; --on-surface: #ebe1d9; --on-surface-variant: #cac7b6;
    --surface-low: #1f1b16; --surface-container: #24201b; --surface-high: #2e2a25; --surface-dim: #17130f;
    --outline: #938f81; --outline-variant: #48473a; --deep: #002117; --gold: #fabc3a;
    --ahead-container: #005320; --on-ahead-container: #a3f5aa;
    --shadow-float: 0 6px 20px rgba(0, 0, 0, 0.55);
    --lockup: url("/assets/lockup-dark.svg");
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--on-surface); font-family: var(--text); font-size: 17px; line-height: 1.5;
       -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-family: var(--text); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.lead { font-size: 1.15rem; color: var(--on-surface-variant); max-width: 36rem; }
.gold { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Buttons: the design system's pills, 48px tall at least. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
       border-radius: var(--radius-full); font-family: var(--text); font-weight: 600; font-size: 1rem; text-decoration: none;
       border: 1.5px solid transparent; transition: transform 250ms var(--ease-standard), box-shadow 250ms var(--ease-standard), background-color 250ms; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-paper { background: #fff8f3; color: #066b53; }
.btn-outline { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }
.btn svg { width: 20px; height: 20px; flex: none; }
/* Google's own badge, unaltered, at its minimum height with its clear space around it. */
.badge { display: inline-block; border-radius: 10px; transition: transform 250ms var(--ease-standard), box-shadow 250ms var(--ease-standard); }
.badge img { height: 56px; width: auto; }
.badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }

/* Header: sticky, translucent. */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
       background: color-mix(in srgb, var(--surface) 78%, transparent); border-bottom: 1px solid transparent;
       transition: border-color 250ms, background-color 250ms; }
.top.scrolled { border-bottom-color: var(--outline-variant); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.lockup { display: block; width: 104px; height: 31px; background: var(--lockup) no-repeat left center / contain; }
.lockup span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.top nav { display: flex; align-items: center; gap: 20px; }
.top nav a { text-decoration: none; color: var(--on-surface-variant); font-weight: 600; font-size: 0.95rem; }
.top nav a:hover { color: var(--on-surface); }
.top nav a.btn { min-height: 40px; padding: 0 18px; font-size: 0.95rem; color: var(--on-primary); }
@media (max-width: 640px) { .top nav a.quiet { display: none; } }

/* Hero: Evergreen running darker, the forecast drawn across it, the phone leaning in. */
.hero { position: relative; overflow: hidden; color: #ffffff;
        background: linear-gradient(135deg, #0a7a5f 0%, #066b53 45%, #04503e 100%); }
.hero::before { content: ""; position: absolute; inset: -40%; background:
  radial-gradient(40% 40% at 30% 30%, rgba(159, 243, 212, 0.18), transparent 70%),
  radial-gradient(35% 35% at 75% 70%, rgba(250, 188, 58, 0.12), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
              padding: 72px 0 0; min-height: min(88vh, 820px); }
.hero h1 { color: #ffffff; }
.hero .lead { color: rgba(255, 255, 255, 0.82); margin-top: 20px; }
.hero .eyebrow { color: #9ff3d4; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 18px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.curves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; pointer-events: none; }
.curves path { fill: none; stroke-linecap: round; }
.curves .gold { stroke: var(--gold); stroke-width: 4; opacity: 0.85; stroke-dasharray: 2000; stroke-dashoffset: 2000;
                animation: draw 2.4s var(--ease-decelerate) 0.3s forwards; }
.curves .mint { stroke: #9ff3d4; stroke-width: 3; opacity: 0.55; stroke-dasharray: 14 12; }
.hero-phone { justify-self: center; align-self: end; perspective: 1400px; }
.hero-phone .phone { transform: rotateY(-10deg) rotateX(3deg) translateY(0); animation: float 7s ease-in-out infinite;
                     transition: transform 600ms var(--ease-standard); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; min-height: 0; text-align: center; }
  .hero .lead, .cta { margin-inline: auto; justify-content: center; }
  .hero-phone { margin-top: 24px; }
}

/* The phone: the same body on every frame, a status bar at 9:41, the screen within. */
.phone { position: relative; width: 300px; max-width: 78vw; border-radius: 44px; background: var(--phone-body);
         padding: 12px; box-shadow: 0 2px 0 var(--phone-rim) inset, 0 30px 60px rgba(0, 0, 0, 0.35); }
.phone .screen { position: relative; border-radius: 34px; overflow: hidden; background: #fff8f3; }
.phone .status { position: relative; height: 32px; display: flex; align-items: center; justify-content: space-between;
                 padding: 0 20px; font-family: var(--text); font-weight: 600; font-size: 12px; color: #1f1b16; z-index: 2; }
.phone .status .cam { position: absolute; left: 50%; top: 9px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #1f1b16; }
.phone .status i { display: inline-block; width: 44px; height: 10px; background:
  linear-gradient(#1f1b16, #1f1b16) 0 100% / 3px 4px no-repeat, linear-gradient(#1f1b16, #1f1b16) 4px 100% / 3px 6px no-repeat,
  linear-gradient(#1f1b16, #1f1b16) 8px 100% / 3px 8px no-repeat, linear-gradient(#1f1b16, #1f1b16) 12px 100% / 3px 10px no-repeat,
  linear-gradient(#1f1b16, #1f1b16) 26px 2px / 18px 8px no-repeat; border-radius: 2px; }
.phone .screen img { width: 100%; height: auto; }
.phone.small { width: 240px; border-radius: 36px; padding: 10px; }
.phone.small .screen { border-radius: 28px; }

/* Sections. */
section { padding: 80px 0; }
section.alt { background: var(--surface-low); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.step { background: var(--surface-container); border-radius: var(--radius-lg); padding: 28px; }
.step .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-container);
           color: var(--on-primary-container); font-family: var(--display); font-weight: 700; margin-bottom: 16px; }
.step p { color: var(--on-surface-variant); margin-top: 8px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.flip .copy { order: 2; }
.feature .copy h2 { margin-top: 12px; }
.feature .copy p { margin-top: 16px; color: var(--on-surface-variant); font-size: 1.1rem; max-width: 34rem; }
.feature .art { display: grid; place-items: center; }
.feature + .feature { margin-top: 96px; }
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: 10% 5%; border-radius: 50%; z-index: -1; filter: blur(40px); opacity: 0.6;
                background: var(--primary-container); }
.glow.gold::before { background: var(--secondary-container); }
.glow.blue::before { background: var(--tertiary-container); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip { padding: 8px 16px; border-radius: var(--radius-full); background: var(--surface-high); font-weight: 600; font-size: 0.95rem; }
.chip.on { background: var(--primary-container); color: var(--on-primary-container); }
.widget { width: 300px; max-width: 80vw; border-radius: var(--radius-lg); box-shadow: var(--shadow-float); overflow: hidden; }
.lesson { background: var(--tertiary-container); color: var(--on-tertiary-container); border-radius: var(--radius-lg); padding: 28px;
          max-width: 420px; }
.lesson .eyebrow { color: var(--tertiary); }
.lesson blockquote { margin: 12px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.3; }
.lesson cite { display: block; margin-top: 14px; font-style: normal; font-size: 0.9rem; opacity: 0.8; }

/* What Edufi doesn't do. */
.honest { border: 1.5px solid var(--outline-variant); border-radius: var(--radius-xl); padding: 36px; margin-top: 40px;
          display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.honest h2 { grid-column: 1 / -1; }
.honest div { padding-left: 18px; border-left: 3px solid var(--secondary-container); }
.honest strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.honest p { color: var(--on-surface-variant); margin-top: 4px; }

/* Free, Premium, Pro. */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.tier { background: var(--surface); border: 1.5px solid var(--outline-variant); border-radius: var(--radius-lg); padding: 28px;
        transition: transform 300ms var(--ease-standard), box-shadow 300ms var(--ease-standard); }
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.tier.free { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.tier.free h3, .tier.free .eyebrow { color: var(--on-primary); }
.tier ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tier li { padding-left: 26px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%;
                   background: var(--primary-container); }
.tier.free li::before { background: var(--gold); }
.tier .eyebrow { color: var(--secondary); }

/* The last call. */
.band { background: var(--deep); color: #ffffff; text-align: center; padding: 96px 0; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 100%, rgba(6, 107, 83, 0.9), transparent 70%); }
.band .wrap { position: relative; }
.band h2 { color: #ffffff; }
.band .lead { color: rgba(255, 255, 255, 0.78); margin: 16px auto 0; }
.band .cta { justify-content: center; }

footer { padding: 40px 0 56px; color: var(--on-surface-variant); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: inherit; }

/* Reveal on scroll, staggered; nothing moves under reduce-motion. */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-decelerate), transform 700ms var(--ease-decelerate); }
[data-reveal].in { opacity: 1; transform: none; }
.steps [data-reveal]:nth-child(2), .tiers [data-reveal]:nth-child(2) { transition-delay: 120ms; }
.steps [data-reveal]:nth-child(3), .tiers [data-reveal]:nth-child(3) { transition-delay: 240ms; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: rotateY(-10deg) rotateX(3deg) translateY(0); } 50% { transform: rotateY(-10deg) rotateX(3deg) translateY(-12px); } }
@keyframes drift { to { transform: translate(6%, 4%) rotate(8deg); } }

@media (max-width: 860px) {
  section { padding: 56px 0; }
  .steps, .tiers, .feature, .honest { grid-template-columns: 1fr; }
  .feature { gap: 32px; }
  .feature.flip .copy { order: 0; }
  .feature + .feature { margin-top: 64px; }
  .honest { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before, .hero-phone .phone, .curves .gold { animation: none; }
  .curves .gold { stroke-dashoffset: 0; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .tier, .badge { transition: none; }
}

/* The calculator page. */
.calc-hero { padding: 56px 0 48px; }
.calc-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.calc form { background: var(--surface-container); border-radius: var(--radius-xl); padding: 28px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--on-surface-variant); }
.field .money { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--outline-variant);
                border-radius: var(--radius-sm); padding: 0 14px; min-height: 52px; transition: border-color 200ms, box-shadow 200ms; }
.field .money:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.field .money span { color: var(--on-surface-variant); font-weight: 600; }
.field input, .field select { width: 100%; min-height: 52px; border: 1.5px solid var(--outline-variant); border-radius: var(--radius-sm);
                              background: var(--surface); color: var(--on-surface); font: inherit; font-size: 1.1rem; padding: 0 14px; }
.field .money input { border: 0; min-height: 48px; padding: 0; background: transparent; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
                background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%23797869' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
                background-repeat: no-repeat; background-position: right 14px center; }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: var(--secondary-container);
          color: var(--on-secondary-container); border-radius: var(--radius-lg); padding: 16px 20px; margin-top: 28px; }
.notice svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.notice strong { font-family: var(--display); font-weight: 600; font-size: 1.1rem; display: block; margin-bottom: 4px; }
.notice p { font-size: 0.98rem; }
.result .quick { display: inline-block; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35);
                 border-radius: var(--radius-full); padding: 4px 12px; font-size: 0.85rem; font-weight: 600; margin-top: 14px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.field .money input:focus { box-shadow: none; }
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rates .field input { min-height: 44px; font-size: 1rem; }
.rates .field label { font-size: 0.85rem; }
.result { background: #066b53; color: #ffffff; border-radius: var(--radius-xl); padding: 32px; position: sticky; top: 88px;
          background-image: radial-gradient(60% 50% at 80% 0%, rgba(159, 243, 212, 0.25), transparent 70%); }
.result .eyebrow { color: #9ff3d4; }
.result .number { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.1; margin-top: 8px;
                  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.result p { margin-top: 14px; color: rgba(255, 255, 255, 0.85); }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0 0; font-size: 0.95rem; }
.result dt { color: rgba(255, 255, 255, 0.7); }
.result dd { margin: 0; font-weight: 600; }
.result .cta { margin-top: 26px; }
.result .none { background: var(--secondary-container); color: var(--on-secondary-container); border-radius: var(--radius-md); padding: 16px; }
.leaves { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.leaves div { background: var(--surface-container); border-radius: var(--radius-lg); padding: 22px; }
.leaves strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.leaves p { color: var(--on-surface-variant); margin-top: 6px; }
@media (max-width: 860px) {
  .calc, .leaves, .rates { grid-template-columns: 1fr; }
  .result { position: static; }
}

/* Support and Delete your account. */
.doc-hero { padding: 56px 0 8px; }
.doc-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 12px; }
.doc-hero .lead { margin-top: 14px; }
.doc-body { padding: 40px 0 72px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: #066b53; color: #ffffff;
           border-radius: var(--radius-xl); padding: 28px 32px; }
.contact h2 { color: #ffffff; font-size: 1.5rem; }
.contact p { color: rgba(255, 255, 255, 0.82); margin-top: 6px; max-width: 34rem; }
.contact .btn-primary { background: #fff8f3; color: #066b53; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.cards.two { grid-template-columns: 1fr 1fr; margin-top: 0; }
.card { background: var(--surface-container); border-radius: var(--radius-lg); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p + p, .card ul { margin-top: 12px; }
.card ul { padding-left: 20px; color: var(--on-surface-variant); display: grid; gap: 6px; }
.card p { color: var(--on-surface-variant); }
.card p strong { color: var(--on-surface); }
.card .btn { margin-top: 4px; }
.doc-body .honest { margin-top: 28px; }
.fine { margin-top: 24px; font-size: 0.9rem; color: var(--on-surface-variant); }
@media (max-width: 860px) { .cards, .cards.two { grid-template-columns: 1fr; } }
