/* Plot & Posy website. Plain CSS, no framework, no analytics. Brand tokens mirror the app. */
:root {
  color-scheme: light dark;
  --sage: #3f5349;
  --sage-container: #d5ddd6;
  --paper: #f3efe8;
  --card: #faf7f2;
  --line: #d5cfc5;
  --ink: #1f211f;
  --muted: #5c605c;
  --terra: #b8674a;
  --on-sage: #f3efe8;
  --link: #3f5349;
  --focus: #b8674a;
  --shadow: 0 1px 2px rgba(31, 33, 31, 0.06), 0 8px 24px rgba(31, 33, 31, 0.06);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --wrap: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Canonical dark pair from lib/theme/app_theme.dart — not a second palette. */
    --sage: #b7c4bc;
    --sage-container: #2c3833;
    --paper: #161816;
    --card: #1e211f;
    --line: #3a403c;
    --ink: #e6e2db;
    --muted: #b3b6b2;
    --terra: #d98e72;
    --on-sage: #1a1e1c;
    --link: #b7c4bc;
    --focus: #d98e72;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
  font-variation-settings: "opsz" 96;
}

h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.2rem);
}

h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
}

h3 {
  font-size: 1.35rem;
  font-variation-settings: "opsz" 36;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--card);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 10;
  border-radius: 8px;
}

.skip:focus {
  left: 0.5rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: clamp(1.08rem, 2.6vw, 1.2rem);
  color: var(--muted);
  max-width: 36rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.rule {
  width: 3.5rem;
  height: 3px;
  background: var(--terra);
  border: 0;
  margin: 0 0 1.4rem;
  border-radius: 2px;
}

/* ---- Header ---------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  gap: 0.25rem 1.1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0.1rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--terra);
  text-decoration-thickness: 2px;
}

@media (max-width: 560px) {
  .nav .hide-sm {
    display: none;
  }
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  border: 1.5px solid var(--sage);
  cursor: pointer;
}

.btn-primary {
  background: var(--sage);
  color: var(--on-sage);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--sage);
}

.btn-ghost:hover {
  background: var(--sage-container);
}

.btn.is-soon {
  cursor: default;
  opacity: 1;
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.btn .sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-store {
  flex-direction: column;
  gap: 0;
  min-width: 9.25rem;
  border-radius: 14px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ---- Sections -------------------------------------------------------- */
section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.band {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

/* ---- Hero ------------------------------------------------------------ */
.hero {
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.shop-hero {
  position: relative;
  isolation: isolate;
}

.shop-arch {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(26rem, 72vw);
  height: auto;
  opacity: 0.16;
  pointer-events: none;
  z-index: -1;
}

.hero .wrap:not(.hero-plain) {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero .wrap:not(.hero-plain) {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero h1 em {
  font-style: italic;
  color: var(--sage);
}

.hero .btn-row {
  margin-top: 1.75rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Phone frame around real app screenshots */
.phone {
  width: min(300px, 78vw);
  margin: 0 auto;
  border-radius: 38px;
  padding: 9px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.phone img {
  border-radius: 30px;
  width: 100%;
  aspect-ratio: 600 / 1304;
  object-fit: cover;
  background: var(--card);
}

.hero-art {
  position: relative;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 12% 8% 6% 8%;
  background: var(--sage-container);
  border-radius: 50% 50% 46% 54% / 60% 52% 48% 40%;
  z-index: -1;
}

.hero-art {
  isolation: isolate;
}

/* ---- Features -------------------------------------------------------- */
.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
}

.feature + .feature {
  border-top: 1px solid var(--line);
}

@media (min-width: 820px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .feature:nth-child(even) .feature-art {
    order: -1;
  }
}

.feature .phone {
  width: min(260px, 70vw);
}

.feature ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--muted);
}

.feature li {
  margin-bottom: 0.35rem;
}

.feature li::marker {
  color: var(--terra);
}

.kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sage);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

/* ---- Cards / grids --------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.band .card {
  background: var(--paper);
}

.card h3 {
  margin-bottom: 0.35rem;
}

.card .push {
  margin-top: auto;
  padding-top: 1rem;
}

/* ---- Pricing --------------------------------------------------------- */
.pricing {
  display: grid;
  gap: 1.25rem;
  max-width: 52rem;
}

@media (min-width: 720px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
}

.price {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  margin: 0.4rem 0 0.25rem;
}

.price small {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--muted);
}

.card.featured {
  border: 2px solid var(--sage);
}

.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--sage-container);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.checks li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.5em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: rotate(-45deg);
}

/* ---- Shop ------------------------------------------------------------ */
.product .thumb {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--sage-container);
  margin: -0.25rem 0 1.1rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product .thumb svg {
  width: 30%;
  color: var(--sage);
}

.product .meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.product .price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product .amount {
  font-family: var(--serif);
  font-size: 1.6rem;
}

.tbd {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--terra);
}

.product.bundle {
  border: 2px solid var(--sage);
}

.notice {
  border-left: 3px solid var(--terra);
  background: var(--card);
  padding: 1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  margin: 0 0 2rem;
  max-width: 48rem;
}

.picks-group {
  margin-top: 2.75rem;
}

.picks-group h3 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.picks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.pick {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pick a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.pick a:hover {
  text-decoration: underline;
}

.pick .why {
  font-size: 0.93rem;
  color: var(--muted);
  margin: 0;
}

.pick .from {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 0.35rem;
}

.mara {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terra);
}

/* ---- FAQ ------------------------------------------------------------- */
.faq {
  max-width: 46rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  padding: 1rem 2rem 1rem 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 0.85rem;
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--sage);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  color: var(--muted);
}

/* ---- Teaser ---------------------------------------------------------- */
.teaser {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 820px) {
  .teaser {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.teaser-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.teaser-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.teaser-list span:last-child {
  color: var(--muted);
  white-space: nowrap;
}

.teaser-art {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.teaser-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---- Legal / text pages ---------------------------------------------- */
.prose {
  max-width: 42rem;
  padding: 3rem 1.25rem 4rem;
  margin: 0 auto;
}

.prose h1 {
  font-size: clamp(2.1rem, 6vw, 3rem);
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.prose .meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.prose code {
  font-size: 0.9em;
  background: var(--sage-container);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

.draft-note {
  border-left: 3px solid var(--terra);
  padding: 0.5rem 0.9rem;
  background: var(--card);
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
}

/* ---- Thanks ---------------------------------------------------------- */
.downloads {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.downloads li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.status {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}

.status[data-kind="error"] {
  border-color: var(--terra);
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}

.chips a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

.chips a:hover {
  border-color: var(--sage);
}
