/* Abilon marketing site. Tokens mirror lib/core/theme/palette.dart. */
:root {
  --cream: #FBF4E8;
  --parchment: #F5E9D6;
  --sand: #EADCC3;
  --espresso: #3A2A22;
  --mocha: #7A6A5E;
  --terracotta: #E56B3F;
  --terracotta-dark: #C24E27;
  --amber: #F2A93B;
  --sage: #5B8C7A;
  --sage-dark: #3F6E5E;
  --sky: #5B7F9E;
  --blush: #E8A08D;
  --night: #221B15;
  --night-card: #2E251E;
  --night-ink: #F4EBDD;
  --white: #FFFAF3;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(58, 42, 34, 0.12);
  --shadow-sm: 0 6px 18px rgba(58, 42, 34, 0.10);
  --max: 1160px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--espresso);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; }
.muted { color: var(--mocha); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--terracotta-dark); margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--mocha); max-width: 56ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  border-radius: 999px; font-weight: 800; font-size: 1rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 6px 0 var(--terracotta-dark); }
.btn-primary:hover { background: #ec7a50; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--terracotta-dark); }
.btn-dark { background: var(--night); color: var(--night-ink); }
.btn-dark:hover { background: #3a2f27; }
.btn-ghost { background: transparent; color: var(--espresso); border-color: var(--sand); }
.btn-ghost:hover { background: var(--parchment); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 0.68rem; font-weight: 700; opacity: .8; line-height: 1; margin-bottom: 2px; }
.btn-store { padding: 10px 20px 10px 16px; text-align: left; }
.btn-store span { line-height: 1.05; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 232, 0.86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(234, 220, 195, 0.7);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--espresso); letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--espresso); font-weight: 700; }
.nav-links a:hover { color: var(--terracotta-dark); text-decoration: none; }
.nav-links .btn { padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--espresso); border-radius: 2px; margin: 5px 0; }

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--terracotta); }
.hero .lead { font-size: 1.25rem; margin-bottom: 28px; }
.hero-note { margin-top: 18px; font-size: 0.95rem; color: var(--mocha); }
.flags { display: inline-flex; gap: 8px; align-items: center; font-size: 1.3rem; margin-right: 8px; vertical-align: middle; }
.hero-art { position: relative; min-height: 560px; }
.postcard {
  position: absolute; right: 0; top: 0; width: 76%; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden;
  transform: rotate(4deg); box-shadow: var(--shadow); border: 8px solid var(--white);
}
.postcard img { width: 100%; height: 100%; object-fit: cover; }
.hero .phone { position: absolute; left: 2%; bottom: 0; transform: rotate(-5deg); }
.sticker {
  position: absolute; background: var(--white); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: 0.92rem; display: flex; gap: 8px; align-items: center;
}
.sticker.a { right: 2%; bottom: 54px; transform: rotate(-3deg); }
.sticker.b { left: 46%; top: 54%; transform: rotate(3deg); }
.sticker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); }

/* Phone frame */
.phone {
  width: 250px; aspect-ratio: 9 / 18.8; border-radius: 38px; background: var(--night);
  padding: 9px; box-shadow: var(--shadow); position: relative; flex: none;
}
.phone::before {
  content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 20px; background: var(--night); border-radius: 12px; z-index: 2;
}
.phone .screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: var(--cream); padding-top: 38px; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; }
.phone.sm { width: 210px; }
.phone.lg { width: 290px; }

/* Logos strip */
.logos { border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); background: var(--parchment); padding: 26px 0; }
.logos .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 44px; }
.logos .label { font-weight: 800; color: var(--mocha); font-size: 0.9rem; letter-spacing: .08em; text-transform: uppercase; }
.logos img { height: 44px; width: auto; opacity: .9; mix-blend-mode: multiply; }
.logos img.tall { height: 64px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.step { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 28px 24px 0; text-align: center; overflow: hidden; }
.step .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--terracotta); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--mocha); font-size: 1rem; min-height: 3.2em; }
.step .phone { margin: 18px auto -60px; }

/* Stories grid */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.story { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--night); box-shadow: var(--shadow-sm); }
.story img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story:hover img { transform: scale(1.04); }
.story .cap {
  position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; color: #fff;
  background: linear-gradient(180deg, rgba(34,27,21,0) 0%, rgba(34,27,21,.85) 100%);
}
.story .cap strong { display: block; font-size: 1.25rem; font-weight: 800; }
.story .cap span { font-size: 0.92rem; opacity: .9; }
.story .tag { position: absolute; top: 14px; left: 14px; background: var(--white); color: var(--espresso); font-weight: 800; font-size: .8rem; padding: 5px 10px; border-radius: 999px; }
.story-more { text-align: center; margin-top: 22px; color: var(--mocha); }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature:nth-child(even) .feature-art { order: -1; }
.feature-art { display: flex; justify-content: center; }
.feature h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature p { color: var(--mocha); font-size: 1.08rem; }
.feature ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.feature li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.feature li::before { content: '✓'; position: absolute; left: 0; color: var(--sage); font-weight: 800; }
.bubble-stack { position: relative; width: 100%; max-width: 420px; }
.bubble { background: var(--white); border: 1px solid var(--sand); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-sm); margin-bottom: 12px; max-width: 86%; }
.bubble.you { background: var(--terracotta); color: #fff; border-color: transparent; margin-left: auto; }
.bubble .who { font-size: .78rem; font-weight: 800; opacity: .7; margin-bottom: 2px; }
.bubble .fix { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--sand); font-size: .95rem; color: var(--sage-dark); }
.bubble .fix b { color: var(--sage-dark); }
.phrase { background: var(--parchment); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; border-left: 5px solid var(--amber); }
.phrase b { display: block; }
.phrase span { color: var(--mocha); font-size: .95rem; }

/* Band (dark) */
.band { background: var(--night); color: var(--night-ink); }
.band h2 { color: #fff; }
.band .lead { color: #cdbfae; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.quote { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 26px; color: var(--espresso); text-align: left; }
.quote .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; font-size: 1.05rem; }
.quote p { font-size: 1.05rem; margin-bottom: 14px; }
.quote .who { font-weight: 800; color: var(--mocha); font-size: .95rem; }
.proof { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.proof em { font-style: normal; color: var(--terracotta); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; max-width: 880px; margin-left: auto; margin-right: auto; }
.plan { background: var(--white); border: 2px solid var(--sand); border-radius: var(--radius); padding: 30px; text-align: left; }
.plan.plus { border-color: var(--terracotta); position: relative; }
.plan .pill { position: absolute; top: -14px; left: 26px; background: var(--terracotta); color: #fff; font-weight: 800; font-size: .8rem; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.5rem; }
.plan .price { font-size: 1.1rem; color: var(--mocha); margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 8px 0 8px 30px; position: relative; border-top: 1px solid var(--parchment); }
.plan li::before { content: '✓'; position: absolute; left: 4px; color: var(--sage); font-weight: 800; }
.plan li.no::before { content: '•'; color: var(--mocha); }

/* FAQ */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq details { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--terracotta); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mocha); padding-bottom: 18px; margin: 0; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--terracotta) 0%, #d95f36 60%, var(--terracotta-dark) 100%); color: #fff; border-radius: 32px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 52ch; margin: 0 auto 28px; }
.cta .store-row { justify-content: center; }
.cta .btn-dark { background: var(--night); }
.cta .btn-light { background: #fff; color: var(--espresso); }
.cta .btn-light:hover { background: var(--cream); }

/* Footer */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--sand); background: var(--parchment); font-size: .95rem; }
.footer .wrap { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mocha); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--espresso); }
.footer .brand { margin-bottom: 10px; }
.footer .fine { color: var(--mocha); font-size: .85rem; margin-top: 14px; }
.footer .store-row { margin-top: 16px; }
.footer .store-row .btn { padding: 8px 14px; font-size: .9rem; }

/* Subpages */
.page { padding: 56px 0 80px; }
.page-head { padding: 64px 0 24px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; }
.prose h3 { font-size: 1.15rem; margin-top: 26px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose.legal { font-size: 1rem; }
.prose.legal p, .prose.legal li { color: #4d3f36; }
.toc { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0 36px; columns: 2; column-gap: 32px; font-size: .95rem; }
.toc a { display: block; padding: 3px 0; color: var(--espresso); }
.meta { color: var(--mocha); font-size: .95rem; }
.card { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col .art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 800; margin: 14px 0 6px; }
.form input, .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--sand); border-radius: 12px; background: #fff; color: var(--espresso); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--terracotta); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { margin-top: 18px; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 20px 0; }
.steps-list li { counter-increment: s; position: relative; padding: 10px 0 10px 48px; border-bottom: 1px solid var(--parchment); }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 32px; height: 32px; border-radius: 50%; background: var(--terracotta); color: #fff; font-weight: 800; display: grid; place-items: center; }
.job { border-top: 1px solid var(--sand); padding: 26px 0; }
.job h3 { margin-bottom: 4px; }

/* Blog */
.featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; color: var(--espresso); box-shadow: var(--shadow-sm); }
.featured:hover { text-decoration: none; }
.featured img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.featured .body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.featured h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.featured p { color: var(--mocha); }
.article time { font-weight: 700; }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 36px; }
.post-card { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .body { padding: 22px 24px 26px; }
.post-card h3 { font-size: 1.25rem; }
.post-card h3 a { color: var(--espresso); }
.post-card p { color: var(--mocha); font-size: 1rem; }
.article { max-width: 720px; margin: 0 auto; }
.article .cover { border-radius: var(--radius); overflow: hidden; margin: 28px 0 36px; aspect-ratio: 16 / 8; }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.article p { font-size: 1.08rem; }
.article h2 { font-size: 1.45rem; margin-top: 36px; }
.article-cta { margin-top: 48px; background: var(--parchment); border-radius: var(--radius); padding: 28px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 480px; max-width: 520px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .step .phone { margin-bottom: -40px; }
  .stories { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) .feature-art { order: 0; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured img { min-height: 220px; max-height: 280px; }
  .plans { grid-template-columns: 1fr; }
  .toc { columns: 1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 24px; }
  .hero-art { min-height: 440px; }
  .postcard { width: 82%; }
  .phone { width: 190px; }
  .phone.lg { width: 230px; }
  .sticker.b { left: 40%; top: 50%; }
  .stories { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 16px 20px 22px; border-bottom: 1px solid var(--sand); gap: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer .wrap { grid-template-columns: 1fr; }
  .cta { padding: 44px 22px; border-radius: 24px; }
  .logos img { height: 30px; }
}
