/* ─────────────────────────────────────────────────────────
   Reset + base
   ───────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Gabarito', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1d1d1f;
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

/* ─────────────────────────────────────────────────────────
   Section scaffolding
   ───────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; text-align: center; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f3460;
  margin-bottom: 0.85rem;
}
h1, h2, h3 { color: #1d1d1f; letter-spacing: -0.015em; }
h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
}
p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: #555a66;
  max-width: 640px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────
   Buttons / CTAs
   ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: #0f3460;
  color: #fff;
}
.btn-primary:hover { background: #1a1a2e; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: #0f3460;
  border-color: rgba(15, 52, 96, 0.25);
}
.btn-ghost:hover { background: rgba(15, 52, 96, 0.06); }
.btn-arrow::after {
  content: "→";
  transition: transform 0.2s;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ─────────────────────────────────────────────────────────
   Hero — Apple Creator Studio-style centered column.
   Responsive approach (matches Apple's pattern):
     • Centered single column with a max-width.
     • Fluid type via clamp(min, vw-based, max).
     • Apple's breakpoints: 1068px (large), 734px (medium),
       320px (small). Spacing collapses at each step.
     • Image is fluid (max-width: 100%), with a max ceiling
       so it doesn't blow up on huge screens.
   ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  /* Always fill the viewport regardless of content size.
     100dvh is the modern dynamic-viewport unit that adjusts
     for mobile browser chrome (address bar). Falls back to
     100vh on older browsers. */
  min-height: 100vh;
  min-height: 100dvh;
  /* Vertically centre the content inside the full-height hero
     so short content stays visually balanced; taller content
     simply grows past 100vh because it's a *min*-height. */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* The brand's sample gradient: cool steel D7DFE4 → white */
  background: linear-gradient(180deg, #d7dfe4 0%, #ffffff 100%);
  overflow: hidden;
  text-align: center;
}

/* The decorative gradient mesh sits absolutely behind the title.
   It's purely visual and centered horizontally. */
.hero__mesh {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(1600px, 140%);
  margin-top: -300px;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

/* Centered content column — caps width on huge displays,
   shrinks naturally on narrow ones. */
.hero__inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

/* Brand logo — official asset (icon + wordmark in one SVG).
   Scaled by height so the aspect ratio is preserved automatically. */
.hero__brand {
  display: block;
  height: clamp(28px, 3.4vw, 44px);
  width: auto;
  margin: 0 auto clamp(16px, 2.2vw, 32px);
}

/* Headline ──────────────────────────────────────────────── */
.hero__title {
  font-size: clamp(2.25rem, 6.5vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #1d1d1f;
  /* Force the line break at "is" only on wide screens —
     on small screens, let it wrap naturally. */
  text-wrap: balance;
}

/* Phone mockup ──────────────────────────────────────────── */
.hero__phone {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin-top: -100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: -50px;
  display: block;
  /* Subtle drop shadow under the floating phone */
  filter: drop-shadow(0 30px 40px rgba(20, 30, 60, 0.12));
}

/* Body paragraph with colored highlights ────────────────── */
.hero__paragraph {
  font-size: clamp(1.4rem, 1.35vw, 1.18rem);
  line-height: 1.35;
  max-width: 1026px;
  margin: 0 auto;
  color: #6b7178;
  text-wrap: pretty;
}
.hero__paragraph .hl {
  font-weight: 400;
}
.hero__paragraph .hl-strong { color: #1d1d1f; font-weight: 700; }
.hero__paragraph .hl-blue   { color: #4877a8; }   /* Track your days */
.hero__paragraph .hl-amber  { color: #a76b3d; }   /* Study with intention */
.hero__paragraph .hl-green  { color: #5a8e5e; }   /* Quiet the document chaos */
.hero__paragraph .hl-purple { color: #9069a3; }   /* navigate the language */

/* ── Apple breakpoints: 1068, 734 ─────────────────────────
   At each step, type and spacing tighten down. */
@media (max-width: 1068px) {
  .hero__title       { font-size: clamp(2rem, 6vw, 4rem); }
}
@media (max-width: 734px) {
  .hero {
    padding: clamp(40px, 9vw, 72px) 20px clamp(48px, 10vw, 80px);
  }
  .hero__title       { font-size: clamp(1.85rem, 9vw, 2.5rem); line-height: 1.08; }
  .hero__paragraph   { font-size: 0.95rem; }
  .hero__mesh        { width: 140%; opacity: 0.7; }
}

/* ─────────────────────────────────────────────────────────
   Pricing teaser
   ───────────────────────────────────────────────────────── */
.pricing-teaser { background: #fafafa; }
.pricing-teaser__cards {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ptier {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  border: 1px solid #e8e8ed;
  display: flex;
  flex-direction: column;
  position: relative;
}
.ptier--featured { border-color: #0f3460; box-shadow: 0 12px 36px -16px rgba(15, 52, 96, 0.3); }
.ptier__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f3460;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}
.ptier__kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c7280;
  margin-bottom: 0.4rem;
}
.ptier__name { font-size: 1.4rem; font-weight: 700; color: #0f3460; }
.ptier__price {
  font-size: 1.85rem;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0.4rem 0 0.15rem;
}
.ptier__price span { font-size: 0.95rem; color: #6c7280; font-weight: 400; }
.ptier__tagline { color: #555a66; font-size: 0.92rem; margin-bottom: 1rem; min-height: 2.4em; }
.ptier__list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.ptier__list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.4rem;
  font-size: 0.92rem;
  color: #2e3038;
}
.ptier__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.3rem;
  color: #0f3460;
  font-weight: 700;
}
.ptier .btn { margin-top: auto; justify-content: center; }
.pricing-teaser__more {
  margin-top: 2rem;
  text-align: center;
  color: #555a66;
  font-size: 0.95rem;
}
.pricing-teaser__more a { color: #0f3460; text-decoration: underline; }
@media (max-width: 800px) {
  .pricing-teaser__cards { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────
   Feature blocks
   ───────────────────────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature--reverse { direction: rtl; }
.feature--reverse > * { direction: ltr; }
.feature__copy h2 { margin: 0.3rem 0 1rem; }
.feature__copy p { color: #555a66; font-size: 1.05rem; max-width: 480px; }
.feature__copy ul {
  list-style: none;
  margin-top: 1.5rem;
  padding: 0;
}
.feature__copy ul li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.6rem;
  color: #2e3038;
  font-size: 0.95rem;
}
.feature__copy ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0f3460;
}
.feature__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature--reverse { direction: ltr; }
  .feature__visual { order: -1; }
}

/* Section background variants */
.section-tint-warm { background: linear-gradient(180deg, #fff 0%, #fef6f1 100%); }
.section-tint-cool { background: linear-gradient(180deg, #fff 0%, #f1f5fc 100%); }

/* ─────────────────────────────────────────────────────────
   Phone-frame mockups (CSS-drawn)
   ───────────────────────────────────────────────────────── */
.phone {
  width: 280px;
  aspect-ratio: 280 / 580;
  background: #1d1d1f;
  border-radius: 42px;
  padding: 12px;
  box-shadow:
    0 30px 70px -20px rgba(15, 52, 96, 0.35),
    0 10px 20px -10px rgba(0,0,0,0.2);
  position: relative;
}
.phone::after {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 85px; height: 22px;
  background: #1d1d1f;
  border-radius: 99px;
  z-index: 2;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  padding: 38px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Presence screen */
.screen-presence { background: linear-gradient(180deg, #e0f2f0 0%, #fff 60%); }
.sp__count {
  font-size: 1.9rem;
  font-weight: 700;
  color: #1d6f6a;
  line-height: 1;
}
.sp__count span { font-size: 0.85rem; color: #6c7280; font-weight: 500; margin-left: 0.25rem; }
.sp__bar {
  height: 8px;
  background: #d1ebe7;
  border-radius: 999px;
  overflow: hidden;
}
.sp__bar-fill { width: 76%; height: 100%; background: linear-gradient(90deg, #2a9d8f, #1d6f6a); border-radius: 999px; }
.sp__cal {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.sp__cal div {
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  background: #f1f5fc;
}
.sp__cal div.in  { background: #2a9d8f; }
.sp__cal div.out { background: #f4a261; }
.sp__legend {
  display: flex; gap: 0.6rem; font-size: 0.6rem; color: #6c7280;
}
.sp__legend span::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; border-radius: 2px; margin-right: 4px; vertical-align: middle;
}
.sp__legend .ld-in::before { background: #2a9d8f; }
.sp__legend .ld-out::before { background: #f4a261; }

/* Quizzes screen */
.screen-quiz { background: linear-gradient(180deg, #fde6e0 0%, #fff 60%); }
.sq__head { display: flex; justify-content: space-between; align-items: center; }
.sq__progress { font-size: 0.7rem; color: #6c7280; }
.sq__progress strong { color: #c54a3b; }
.sq__q { font-weight: 600; font-size: 0.85rem; color: #1d1d1f; line-height: 1.3; }
.sq__opts { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sq__opt {
  background: #fff;
  border: 1.5px solid #f1d5cd;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.7rem;
  color: #2e3038;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sq__opt::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid #c0a8a0;
  flex-shrink: 0;
}
.sq__opt--correct { border-color: #2a9d8f; background: #e0f2f0; }
.sq__opt--correct::before { background: #2a9d8f; border-color: #2a9d8f; }
.sq__opt--correct::after {
  content: "✓"; color: #2a9d8f; font-weight: 700; margin-left: auto; font-size: 0.85rem;
}

/* Documents screen */
.screen-docs { background: linear-gradient(180deg, #fef0e0 0%, #fff 60%); }
.sd__head { font-size: 0.75rem; color: #6c7280; }
.sd__head strong { color: #1d1d1f; font-size: 0.95rem; display: block; }
.sd__list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sd__item {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #f4dec5;
}
.sd__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f4a261, #d77b3a);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.7rem; font-weight: 700;
}
.sd__title { font-size: 0.75rem; color: #1d1d1f; font-weight: 600; }
.sd__sub   { font-size: 0.62rem; color: #6c7280; margin-top: 1px; }
.sd__status {
  margin-left: auto; font-size: 0.6rem; padding: 2px 6px;
  border-radius: 99px; font-weight: 600;
}
.sd__status--ok { background: #e0f2f0; color: #1d6f6a; }
.sd__status--wait { background: #fef3c7; color: #92400e; }

/* Language screen */
.screen-lang { background: linear-gradient(180deg, #e6ecff 0%, #fff 60%); }
.sl__title { font-size: 0.85rem; color: #1d1d1f; font-weight: 600; }
.sl__sub { font-size: 0.65rem; color: #6c7280; margin-top: 2px; }
.sl__step {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #d8e0fb;
  display: flex; align-items: center; gap: 0.55rem;
}
.sl__step:not(:last-child) { margin-bottom: 6px; }
.sl__num {
  width: 24px; height: 24px; border-radius: 50%;
  background: #4361ee; color: #fff;
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sl__step--done .sl__num { background: #2a9d8f; }
.sl__step--done .sl__num::after { content: "✓"; }
.sl__step--done .sl__num span { display: none; }
.sl__step-name { font-size: 0.72rem; color: #1d1d1f; font-weight: 600; }
.sl__step-meta { font-size: 0.6rem; color: #6c7280; margin-top: 1px; }

/* ─────────────────────────────────────────────────────────
   Household section
   ───────────────────────────────────────────────────────── */
.household {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
}
.household__inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.household h2 { color: #fff; }
.household p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 480px; }
.household .btn-primary {
  background: #fff; color: #0f3460;
  margin-top: 1.5rem;
}
.household .btn-primary:hover { background: #f1f5fc; }
.household__avatars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.household__avatar {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}
.household__avatar-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 0.6rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: #fff;
}
.household__avatar:nth-child(1) .household__avatar-circle { background: linear-gradient(135deg, #2a9d8f, #1d6f6a); }
.household__avatar:nth-child(2) .household__avatar-circle { background: linear-gradient(135deg, #e76f51, #c54a3b); }
.household__avatar:nth-child(3) .household__avatar-circle { background: linear-gradient(135deg, #f4a261, #d77b3a); }
.household__avatar:nth-child(4) .household__avatar-circle { background: linear-gradient(135deg, #4361ee, #2542b0); }
.household__avatar-name { font-size: 0.9rem; font-weight: 600; }
.household__avatar-prog { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-top: 0.2rem; }
@media (max-width: 800px) {
  .household__inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ─────────────────────────────────────────────────────────
   Cross-platform strip
   ───────────────────────────────────────────────────────── */
.platforms { padding: 4rem 1.5rem; text-align: center; }
.platforms__icons {
  margin-top: 2rem;
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: #555a66;
}
.platforms__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.platforms__icon svg { width: 38px; height: 38px; color: #1d1d1f; }

/* ─────────────────────────────────────────────────────────
   Pricing comparison strip (compact)
   ───────────────────────────────────────────────────────── */
.pricing-strip { background: #fafafa; }
.pricing-strip table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.5rem;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px -8px rgba(0,0,0,0.08);
}
.pricing-strip th, .pricing-strip td {
  padding: 0.85rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid #eef0f5;
  font-size: 0.92rem;
}
.pricing-strip thead th {
  background: #eef0f5;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1d1d1f;
}
.pricing-strip thead th small { display: block; font-weight: 400; color: #6c7280; text-transform: none; letter-spacing: 0; margin-top: 0.15rem; }
.pricing-strip td.feat { font-weight: 600; width: 32%; }
.pricing-strip td.dash { color: #b3b8c2; }
.pricing-strip td.check::before { content: "✓"; color: #0f3460; font-weight: 700; margin-right: 0.3rem; }
.pricing-strip__more { text-align: center; margin-top: 1.5rem; }
@media (max-width: 800px) {
  .pricing-strip { overflow-x: auto; }
  .pricing-strip table { min-width: 640px; }
}

/* ─────────────────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────────────────── */
.faq__list { max-width: 760px; margin: 2.5rem auto 0; }
.faq__list details {
  background: #fff;
  border: 1px solid #e8e8ed;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.6rem;
  transition: border-color 0.15s;
}
.faq__list details[open] { border-color: #0f3460; }
.faq__list summary {
  cursor: pointer;
  font-weight: 600;
  color: #1d1d1f;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
  font-size: 0.98rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 0;
  color: #0f3460;
  font-weight: 700;
  font-size: 1.2rem;
}
.faq__list details[open] summary::after { content: "–"; }
.faq__list details p { color: #555a66; margin-top: 0.65rem; font-size: 0.95rem; }

/* ─────────────────────────────────────────────────────────
   CTA banner
   ───────────────────────────────────────────────────────── */
.cta-banner {
  text-align: center;
  padding: 5rem 1.5rem;
  background: radial-gradient(ellipse at center, rgba(15, 52, 96, 0.06), transparent 60%), #fff;
}
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner__ctas {
  margin-top: 1.5rem;
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────── */
footer {
  background: #1d1d1f;
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.88rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
footer h4 { color: #fff; font-size: 0.92rem; margin-bottom: 0.85rem; }
footer .copyright {
  width: 100%;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}

/* ─────────────────────────────────────────────────────────
   Reveal-on-scroll
   ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
