/* DolphinBlue proposal by Sinau Studio. Same tokens and devices as sinaustudio.com (palette from Terrava Digital). */
:root {
  --ink: #23143F;
  --ink-2: #352557;
  --ground: #F5F1FF;
  --white: #FFFFFF;
  --coral: #FF986B;
  --yellow: #FFFB6D;
  --lavender: #D1C1FF;
  --sky: #80C4F1;
  --mint: #89E0B3;
  --muted: #463A5F;        /* 9.3:1 on ground, 4.9:1 on coral */
  --muted-dark: #D7D5DC;   /* body text on ink */
  --line: rgba(35, 20, 63, .12);
  --line-dark: rgba(255, 255, 255, .16);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 40px;
  --pad: 56px;
  --wrap: min(1360px, 100% - 2 * var(--gutter));
  --r-panel: 40px;
  --r-card: 24px;
  --r-btn: 10px;
  --fast: 150ms;
  --focus: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
.tone-coral { --tone: var(--coral); }
.tone-sky { --tone: var(--sky); }
.tone-mint { --tone: var(--mint); }
.tone-yellow { --tone: var(--yellow); }
.tone-lavender { --tone: var(--lavender); }
html { scroll-padding-top: 96px; } /* no CSS smooth scroll: it animates ScrollTrigger's scroll restores; anchor links glide via JS */
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; }
h3 { font-size: 1.375rem; line-height: 1.2; font-weight: 750; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
main { overflow-x: clip; } /* ribbons run past the page edge; body-level clip leaks to the viewport */
.stop { margin-left: -.05em; } /* heavy Jakarta full stops sit loose */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-btn); }
.skip:focus { top: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 28px; border-radius: var(--r-btn); font: 700 16px/1 var(--font); text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; transition: background-color var(--fast) ease-out, border-color var(--fast) ease-out, transform var(--fast) ease-out; }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); }
.btn--primary { background: var(--coral); color: var(--ink); }
.btn--primary:hover { background: var(--white); }
.btn--ghost { color: var(--white); border-color: var(--line-dark); }
.btn--ghost:hover { border-color: var(--white); }
.btn--plan { background: var(--ink); color: var(--white); width: 100%; margin-top: auto; }
.btn--plan:hover { background: var(--ink-2); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: var(--wrap); margin-inline: auto; height: 88px; padding-inline: 8px; background: var(--ground); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.nav__for { font-size: 15px; color: var(--muted); }
.nav__for b { color: var(--ink); }

/* Layout */
.section, .panel { position: relative; isolation: isolate; width: var(--wrap); margin-inline: auto; }
.panel { border-radius: var(--r-panel); padding: var(--pad); overflow: clip; }
.panel--dark { background: var(--ink); color: var(--white); --focus: var(--coral); }
.panel--white { background: var(--white); }
.panel--coral { background: var(--coral); color: var(--ink); --focus: var(--ink); }
.panel--coral .btn--ghost { color: var(--ink); border-color: var(--ink); }
.panel--coral .btn--ghost:hover { background: var(--white); border-color: var(--white); }
.section { padding: 104px var(--pad); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; background: var(--ink); color: var(--white); --focus: var(--coral); padding-block: 72px; min-height: min(700px, calc(100vh - 104px)); }
.hero__meta { font-size: 14px; font-weight: 600; color: var(--muted-dark); margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -.04em; }
.hero h1 .line { display: block; overflow: hidden; padding-block: .06em .1em; margin-block: -.06em -.1em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em { display: inline-block; padding: 0 .14em .03em; border-radius: .2em; font-style: normal; background: var(--sky); color: var(--ink); } /* DolphinBlue gets the blue pill */
.hero__sub { margin-top: 24px; max-width: 36em; font-size: 19px; line-height: 1.5; color: var(--muted-dark); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__prices { display: grid; gap: 12px; }
.hero__prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 24px; border-radius: var(--r-card); background: var(--tone); color: var(--ink); }
.hero__prices span { font-weight: 700; }
.hero__prices b { font-size: 26px; letter-spacing: -.03em; text-align: right; }

/* Rain: thin drops falling behind the hero (generated by app.js, motion only) */
.rain { position: absolute; inset: -10% 0 0; z-index: -1; pointer-events: none; transform: rotate(10deg) scale(1.2); }
.rain i { position: absolute; top: -12%; width: 2px; border-radius: 2px; background: linear-gradient(transparent, var(--sky)); }

/* Ribbons: centrelines become filled bands with V-cut ends in app.js (.is-shaped); the stroke is the no-JS fallback */
.ribbon { position: absolute; z-index: -1; height: auto; pointer-events: none; overflow: visible; }
.ribbon path { fill: none; stroke: url(#rib-a); stroke-width: 34; stroke-linecap: round; }
.ribbon--b path { stroke: url(#rib-b); }
.ribbon--c path { stroke: url(#rib-c); }
.ribbon.is-shaped path { fill: url(#rib-a); stroke: none; }
.ribbon--b.is-shaped path { fill: url(#rib-b); }
.ribbon--c.is-shaped path { fill: url(#rib-c); }
.ribbon path.ribbon__glint { fill: none; stroke: var(--white); stroke-width: 6; stroke-dasharray: 4 96; opacity: 0; }
#rib-a stop:nth-child(1) { stop-color: var(--coral); }
#rib-a stop:nth-child(2) { stop-color: var(--lavender); }
#rib-a stop:nth-child(3) { stop-color: var(--sky); }
#rib-b stop:nth-child(1) { stop-color: var(--yellow); }
#rib-b stop:nth-child(2) { stop-color: var(--coral); }
#rib-b stop:nth-child(3) { stop-color: var(--lavender); }
#rib-c stop:nth-child(1) { stop-color: var(--sky); }
#rib-c stop:nth-child(2) { stop-color: var(--mint); }
#rib-c stop:nth-child(3) { stop-color: var(--yellow); }
.ribbon--hero { right: -60px; bottom: -120px; width: 700px; }
.ribbon--gets { left: -5%; top: 120px; width: 110%; }
.ribbon--pricing { right: -60px; bottom: -70px; width: 600px; } /* behind the cards, never under the white intro text */
.ribbon--timeline { left: -40px; bottom: -70px; width: 62%; }
.ribbon--terms { right: -80px; top: 80px; width: 34%; }
.ribbon--cta { right: -40px; top: -60px; width: 64%; }

/* What you get */
.gets h2 { max-width: 14em; }
.gets__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.gets__grid li { background: var(--tone); border-radius: var(--r-card); padding: 28px; display: grid; gap: 10px; align-content: start; }
.gets__grid p { color: var(--muted); }

/* Packages */
.pricing__head { display: grid; gap: 14px; max-width: 40em; }
.pricing__head p { font-size: 19px; color: var(--muted-dark); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: var(--r-card); background: var(--white); color: var(--ink); border-top: 10px solid var(--tone); }
.plan--featured { background: var(--tone); border-top-color: var(--ink); }
.plan__badge { position: absolute; top: -18px; right: 24px; padding: 6px 12px; border-radius: 999px; background: var(--yellow); font-weight: 800; font-size: 13px; transform: rotate(4deg); }
.plan__name { font-weight: 800; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.plan__price b { font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan__for { color: var(--muted); }
.plan__list { display: grid; gap: 10px; padding-block: 16px 20px; border-top: 1px solid var(--line); }
.plan__list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.plan__list svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--tone); fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.plan--featured .plan__list svg { background: var(--white); }
.plan__all { font-weight: 700; }

/* Comparison */
.table-wrap { margin-top: 40px; background: var(--white); border-radius: var(--r-card); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 620px; }
th, td { text-align: left; padding: 16px 20px; }
thead th { font-size: 14px; color: var(--muted); }
tbody tr { border-top: 1px solid var(--line); }
tbody th { font-weight: 600; }
td { color: var(--muted); }
td.yes { color: var(--ink); font-weight: 700; }
td.yes::before { content: "✓ "; color: var(--ink); }
td.no { color: var(--muted); }
.is-featured { background: color-mix(in srgb, var(--coral) 22%, transparent); }
thead .is-featured { background: var(--coral); color: var(--ink); }

/* Timeline */
.timeline h2 { margin-bottom: 12px; }
.timeline__note { color: var(--muted); max-width: 40em; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; margin-top: 48px; }
.steps::before { content: ""; position: absolute; top: 8px; left: 9px; right: calc(20% - 31px); height: 2px; background: var(--line); }
.steps i.line { position: absolute; top: 8px; left: 9px; right: calc(20% - 31px); height: 2px; background: var(--ink); transform-origin: left; }
.step__dot { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: var(--tone); position: relative; }
.step__when { display: block; margin-top: 20px; font-size: 13px; font-weight: 700; color: var(--muted); }
.step h3 { margin-top: 6px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Terms */
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.terms__col { display: grid; gap: 24px; }
.terms h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.terms__list { display: grid; gap: 0; }
.terms__list li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); }
.terms__list li:last-child { border-bottom: 1px solid var(--line); }
.needs { display: grid; gap: 10px; }
.needs li { padding: 16px 20px; border-radius: 16px; background: var(--tone); font-weight: 600; }

/* CTA */
.cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; padding-block: 80px; margin-top: 24px; }
.cta h2 { font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.05; letter-spacing: -.04em; }
.cta h2 em { font-style: normal; background: var(--yellow); padding: 0 .12em; border-radius: .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cta__side p { font-size: 19px; color: var(--muted); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Footer */
.footer { width: var(--wrap); margin-inline: auto; padding: 80px var(--pad) 40px; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.footer__logo { width: 140px; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.footer h2 { font: 700 14px/1 var(--font); letter-spacing: 0; color: var(--muted); margin-bottom: 16px; }
.footer p { margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; font-size: 14px; color: var(--muted); }

/* Motion extras */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 60; pointer-events: none; display: none; }
.motion .progress { display: block; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--sky)); transform-origin: left; transform: scaleX(0); }
.motion .reveal, .motion .hero__copy > *, .motion .hero__prices li { opacity: 0; }


@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .hero { grid-template-columns: 1fr; align-items: start; min-height: 0; }
  .gets__grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .steps { grid-template-columns: 1fr; gap: 32px; padding-left: 40px; }
  .steps::before, .steps i.line { top: 9px; bottom: 0; left: 8px; right: auto; width: 2px; height: auto; transform-origin: top; }
  .step__dot { position: absolute; left: -40px; top: 0; }
  .step__when { margin-top: 0; }
  .step { position: relative; }
  .terms, .cta { grid-template-columns: 1fr; gap: 48px; }
  .ribbon--terms { width: 60%; top: auto; bottom: -60px; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; --pad: 24px; --r-panel: 28px; }
  .nav { height: 72px; }
  .nav__for { display: none; }
  .section { padding-block: 72px; }
  .hero { padding-block: 48px; }
}
@media (max-width: 600px) {
  .gets__grid { grid-template-columns: 1fr; }
  .plan { padding: 26px; }
  .ribbon--hero { width: 380px; right: -110px; bottom: -160px; }
  .ribbon--gets { top: 160px; left: -30%; width: 160%; }
  .ribbon--pricing { width: 380px; right: -140px; bottom: -90px; }
  .ribbon--timeline { width: 130%; left: -30%; }
  .ribbon--cta { width: 120%; right: -60%; top: auto; bottom: -100px; }
  .footer, .footer__cols { grid-template-columns: 1fr; }
}
