/* Mola's website. Colours, radii and the rounded type follow the app's design language (MolaDesign tokens):
   soft mint days, white cards, pastel tints, a deep green night for focus, amber for what is earned. */
@font-face { font-family: Nunito; src: url(fonts/Nunito-500-800.woff2) format("woff2"); font-weight: 500 800; font-display: swap; }

:root {
  --ground: #E4F1EC; --surface: #FFFFFF; --sunken: #EEF5F2; --ink: #14201E; --muted: #47605A; --primary: #1F6F6B;
  --mint: #D3EBE4; --lilac: #DDD6F6; --peach: #FBE3B5; --sky: #CFE3F5; --hairline: #CFDFDA;
  --on-mint: #14564F; --on-lilac: #3B2F7A; --on-peach: #5E4514; --on-sky: #1D4A75;
  --night: #0F1A18; --night-ink: #FFFFFF; --night-muted: #B4C6C1; --amber: #F2B24C; --on-amber: #2A1E05;
  --bezel: #14201E; --shadow: 0 30px 60px -30px rgba(20, 32, 30, .35);
  --gutter: 20px; --radius: 32px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1A18; --surface: #182B28; --sunken: #14231F; --ink: #FFFFFF; --muted: #B4C6C1; --primary: #5FB8B0;
    --mint: #1D3A35; --lilac: #2C2750; --peach: #3A2F14; --sky: #1B3147; --hairline: #2F4A45;
    --on-mint: #9FE0D6; --on-lilac: #CFC6F7; --on-peach: #F2C27A; --on-sky: #BBD9F5;
    --night: #0A1211; --bezel: #2F4A45; --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 500 17px/1.6 Nunito, ui-rounded, system-ui, sans-serif; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
main ul, main ol, footer ul { margin: 0; padding: 0; list-style: none; }
main, .top, footer { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 20; background: var(--surface); padding: 10px 16px; border-radius: 999px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px;
  background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { color: var(--muted); font-weight: 700; text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.menu a:hover { color: var(--ink); background: var(--surface); }
.lang { font-weight: 800; text-decoration: none; background: var(--surface); padding: 8px 16px; border-radius: 999px; }

/* Shared pieces */
section { margin: 0 0 96px; }
h2 { font-size: clamp(30px, 4vw, 44px); }
.center { text-align: center; max-width: 18em; margin: 0 auto 48px; }
.tag { display: inline-block; font-weight: 800; font-size: 14px; letter-spacing: .02em; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.tint0 { background: var(--mint); color: var(--on-mint); } .tint1 { background: var(--peach); color: var(--on-peach); }
.tint2 { background: var(--lilac); color: var(--on-lilac); } .tint3 { background: var(--sky); color: var(--on-sky); }
.fine { font-size: 15px; color: var(--muted); }
.card { background: var(--surface); border-radius: 28px; padding: 24px; }
.button { display: inline-block; font-weight: 800; border-radius: 999px; padding: 16px 28px; background: var(--ink); color: var(--ground); text-decoration: none; }
.button.soon { background: var(--amber); color: var(--on-amber); }
.ticks li { position: relative; padding-left: 34px; margin: 12px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: #D3EBE4
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%231F6F6B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* The device frame around every screenshot */
.phone { width: min(100%, 300px); aspect-ratio: 603 / 1311; margin: 0 auto; border: 9px solid var(--bezel); border-radius: 46px; overflow: hidden;
  background: var(--bezel); box-shadow: var(--shadow); }
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: 48px 0 0; }
.eyebrow { font-weight: 800; color: var(--primary); letter-spacing: .04em; margin-bottom: 16px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); letter-spacing: -0.035em; line-height: 1.02; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 32em; margin: 24px 0 28px; }
.actions { margin-bottom: 14px; }
.stage { background: var(--mint); border-radius: 48px; padding: 40px 24px; }
.stage .phone { width: min(100%, 310px); }

/* Steps */
.steps h2 { margin-bottom: 28px; }
.steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--surface); border-radius: 28px; padding: 24px; }
.steps h3 { font-size: 21px; margin: 16px 0 8px; }
.steps p { color: var(--muted); }
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--peach); color: var(--on-peach); font-weight: 800; font-size: 20px; }
.steps li:nth-child(2) .num { background: var(--mint); color: var(--on-mint); }
.steps li:nth-child(3) .num { background: var(--lilac); color: var(--on-lilac); }

/* Feature rows: copy on one side, a screenshot on the other */
.feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; margin-bottom: 24px;
  background: var(--surface); border-radius: var(--radius); padding: 48px; }
.feature.flip .copy { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.feature .copy > p:not(.tag) { color: var(--muted); font-size: 18px; margin-bottom: 8px; }
.feature .phone { width: min(100%, 270px); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid h3 { font-size: 19px; margin-bottom: 6px; }
.grid p { color: var(--muted); font-size: 16px; }

/* Family: the second thing Mola does, on its own lilac band */
.band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; background: var(--lilac);
  border-radius: var(--radius); padding: 56px 48px; }
.band .copy > p:not(.tag):not(.fine) { font-size: 18px; margin: 14px 0 24px; }
.band .tag { background: var(--surface); }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.pairs li { background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 20px; padding: 16px; }
.pairs h3 { font-size: 17px; margin-bottom: 4px; letter-spacing: -0.01em; }
.pairs p { font-size: 15px; line-height: 1.5; }
.band .fine { color: var(--on-lilac); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.duo .phone { border-width: 7px; border-radius: 34px; }
.duo .phone:last-child { margin-top: 56px; }

/* Privacy */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.split h2 + p { color: var(--muted); font-size: 18px; margin: 14px 0 18px; }
.split a { font-weight: 800; }
.split .card { padding: 20px 28px; }

/* Questions */
.faq { max-width: 820px; margin-left: auto; margin-right: auto; }
.faq h2 { text-align: center; margin-bottom: 28px; }
details { background: var(--surface); border-radius: 22px; margin-bottom: 10px; }
summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 18px; padding: 20px 56px 20px 24px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 3px solid var(--muted);
  border-bottom: 3px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 24px 22px; color: var(--muted); }

/* Closing band: the night of the focus screen */
.cta { background: var(--night); color: var(--night-ink); border-radius: var(--radius); padding: 64px 24px; text-align: center; }
.cta img { margin: 0 auto 20px; border-radius: 22px; }
.cta h2 { color: var(--amber); }
.cta p { color: var(--night-muted); font-size: 19px; margin-top: 10px; }
.cta .button { margin-top: 24px; background: var(--amber); color: var(--on-amber); }

/* Footer */
footer { padding-top: 8px; padding-bottom: 48px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 16px;
  border-bottom: 2px solid var(--hairline); margin-bottom: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 800; }
.foot nav a { padding: 6px 0; }

/* Documents (privacy, terms, support) */
.doc { background: var(--surface); border-radius: 28px; padding: 36px; max-width: 820px; margin: 24px auto 48px; overflow-wrap: anywhere; }
.doc h1 { font-size: 36px; margin: 8px 0 16px; }
.doc h2 { font-size: 24px; margin: 32px 0 8px; letter-spacing: -0.01em; }
.doc h3 { font-size: 19px; margin: 24px 0 6px; letter-spacing: -0.01em; }
.doc p { margin: 12px 0; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 12px 0; }
.doc ul { list-style: disc; } .doc ol { list-style: decimal; }
.doc hr { border: 0; border-top: 2px solid var(--hairline); margin: 24px 0; }
.doc li { margin: 6px 0; }
.crumb { margin: 0; font-weight: 800; }
.table { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--hairline); }
th { font-weight: 800; }
td:first-child { font-weight: 700; min-width: 8.5em; }

@media (max-width: 900px) {
  section { margin-bottom: 64px; }
  .menu { display: none; }
  .lang { margin-left: auto; }
  .hero, .feature, .band, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero { padding-top: 24px; }
  .feature, .band { padding: 28px 20px; }
  .feature.flip .copy { order: 0; }
  .steps ol { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { padding: 22px; border-radius: 24px; }
}
@media (max-width: 520px) {
  .grid, .pairs { grid-template-columns: minmax(0, 1fr); }
}
