/* Lichi website. Colors mirror the app (lib/config/theme/app_colors.dart). */
:root {
  --cranberry: #9E2A3A;
  --cranberry-deep: #7A1F2C;
  --cranberry-light: #F4DCE0;
  --pine: #2F5D50;
  --pine-deep: #234A3F;
  --pine-light: #D5E5DD;
  --gold: #C9A227;
  --green: #3A8D5C;
  --cream: #FAF7F2;
  --cream-deep: #F3EEE6;
  --white: #FFFFFF;
  --ink: #1F1B16;
  --ink-soft: #6B645C;
  --line: #E9E3DA;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cranberry); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.45rem; line-height: 1.2; }
p { margin: 0; }

.icon {
  font-family: "Material Symbols Rounded";
  font-weight: normal; font-style: normal;
  font-size: 22px; line-height: 1;
  font-variation-settings: "FILL" 1, "wght" 500;
  display: inline-block; white-space: nowrap;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga";
}

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.header-link {
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 10px 18px; border: 1.5px solid rgba(250, 247, 242, 0.4); border-radius: 999px;
}
.header-link:hover { background: rgba(250, 247, 242, 0.1); }

/* Light header for the legal pages */
.site-header.light { position: static; border-bottom: 1px solid var(--line); background: var(--cream); }
.site-header.light .brand span { color: var(--cranberry); }
.site-header.light .header-link { color: var(--cranberry); border-color: var(--line); }
.site-header.light .header-link:hover { background: var(--cream-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--cream);
  background-color: var(--cranberry);
  /* the lychee skin: the same diamond bumps as the logo */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='38'%3E%3Cpath d='M11 4l5 5-5 5-5-5zM33 23l5 5-5 5-5-5z' fill='%237A1F2C'/%3E%3C/svg%3E");
  padding: 150px 0 0;
}
.hero .brand span { color: var(--cream); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero-copy { padding-bottom: 120px; }
.hero-copy p { font-size: 1.2rem; max-width: 30em; margin: 24px 0 36px; color: #F6E7EA; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 16px; border-radius: 14px;
  background: var(--ink); color: var(--white); text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.72rem; opacity: 0.75; line-height: 1.2; }
.store strong { display: block; font-size: 1.1rem; line-height: 1.2; font-weight: 600; }
.store[aria-disabled="true"] { cursor: default; }
.soon { margin-top: 14px; font-size: 0.9rem; color: #EBC9CF; }

.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; min-height: 600px; }
.hero-phones figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-phones figure:first-child { transform: translateY(-36px) rotate(-3deg); margin-right: -30px; z-index: 1; }
.hero-phones figure:last-child { transform: translateY(40px) rotate(2deg); z-index: 2; }
.hero-phones figcaption {
  font-weight: 600; font-size: 0.95rem; color: var(--cream);
  background: rgba(31, 27, 22, 0.28); padding: 6px 14px; border-radius: 999px;
}

/* ---------- Phone mockup (mirrors the app's UI) ---------- */
.phone {
  width: 290px; height: 600px; flex: none;
  background: var(--cream); color: var(--ink);
  border: 10px solid var(--ink); border-radius: 48px;
  overflow: hidden; position: relative;
  box-shadow: 0 40px 80px -20px rgba(40, 10, 16, 0.55);
  font-size: 13px; line-height: 1.35;
}
.phone .island { width: 92px; height: 26px; background: var(--ink); border-radius: 20px; margin: 9px auto 0; }
.phone .status { position: absolute; top: 14px; left: 26px; font-weight: 600; font-size: 12px; }
.phone .screen { padding: 14px 14px 0; }
.phone .bar { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.phone .bar .icon { font-size: 20px; color: var(--ink); }
.phone .title { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.phone .meta { color: var(--ink-soft); font-size: 12px; margin-bottom: 14px; }

.item {
  display: flex; align-items: center; gap: 11px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; padding: 10px; margin-bottom: 8px;
}
.tile {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: rgba(158, 42, 58, 0.1); color: var(--cranberry);
}
.tile .icon { font-size: 21px; }
.item .text { flex: 1; min-width: 0; }
.item .name { font-weight: 600; font-size: 13.5px; }
.item .sub { color: var(--ink-soft); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .price { color: var(--ink-soft); font-weight: 600; font-size: 12.5px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 8px; white-space: nowrap;
}
.chip .icon { font-size: 14px; }

.is-interested .tile, .chip.is-interested { background: rgba(201, 162, 39, 0.14); color: #9C7B12; }
.is-reserved .tile, .chip.is-reserved { background: rgba(47, 93, 80, 0.12); color: var(--pine); }
.is-purchased .tile, .chip.is-purchased { background: rgba(58, 141, 92, 0.12); color: var(--green); }

.phone .nav {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around; padding: 8px 0 18px;
  background: var(--white); border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--ink-soft); text-align: center;
}
.phone .nav span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.phone .nav .on { color: var(--cranberry); font-weight: 600; }
.phone .nav .on .icon { background: var(--cranberry-light); border-radius: 12px; padding: 3px 16px; }
.phone .nav .icon { font-size: 20px; }

.banner {
  border-radius: 22px; padding: 18px; color: var(--white); margin: 10px 0 16px;
  background: linear-gradient(135deg, #A83246, var(--cranberry-deep));
}
.banner b { font-family: var(--serif); font-size: 22px; display: block; }
.banner span { font-size: 12.5px; opacity: 0.9; }
.section-title { font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; gap: 9px; align-items: center; }
.stat .tile { width: 34px; height: 34px; border-radius: 10px; }
.stat .tile .icon { font-size: 18px; }
.stat b { font-family: var(--serif); font-size: 19px; display: block; line-height: 1; }
.stat small { color: var(--ink-soft); font-size: 11px; }
.tile.pine { background: rgba(47, 93, 80, 0.12); color: var(--pine); }
.tile.green { background: rgba(58, 141, 92, 0.12); color: var(--green); }
.tile.gold { background: rgba(201, 162, 39, 0.14); color: #9C7B12; }
.pill { font-size: 10.5px; font-weight: 600; color: var(--green); background: rgba(58, 141, 92, 0.12); padding: 2px 7px; border-radius: 6px; }

.host-note {
  display: flex; gap: 8px; align-items: center;
  background: var(--pine-light); color: var(--pine-deep);
  border-radius: 14px; padding: 9px 11px; font-size: 11.5px; margin-bottom: 12px;
}
.host-note .icon { font-size: 18px; }

/* Hero motion: the claims appear on the second phone, once */
@media (prefers-reduced-motion: no-preference) {
  .reveal .claim-sub, .reveal .chip { animation: claimIn 0.5s cubic-bezier(.2, .8, .2, 1.2) both; }
  .reveal .tile { animation: tileIn 0.5s ease both; }
  .reveal .item:nth-child(1) * { animation-delay: 0.9s; }
  .reveal .item:nth-child(2) * { animation-delay: 1.4s; }
  .reveal .item:nth-child(3) * { animation-delay: 1.9s; }
  @keyframes claimIn { from { opacity: 0; transform: translateY(4px) scale(0.9); } }
  @keyframes tileIn { from { background: rgba(158, 42, 58, 0.1); color: var(--cranberry); } }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; margin-top: 18px; }

/* Claims */
.claims-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.claim-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.claim-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.claim-list .chip { font-size: 0.85rem; padding: 6px 12px; border-radius: 10px; margin-top: 2px; min-width: 124px; }
.claim-list .chip .icon { font-size: 18px; }
.claim-list p { color: var(--ink-soft); }
.claim-list strong { color: var(--ink); }
.claims-demo {
  background: var(--cream-deep); border-radius: 32px; padding: 32px;
  display: grid; gap: 4px;
}
.claims-demo .item { padding: 14px; border-radius: 20px; }
.claims-demo .name { font-size: 16px; }
.claims-demo .sub { font-size: 13px; }
.claims-demo .tile { width: 48px; height: 48px; border-radius: 14px; }
.claims-demo .price { font-size: 14px; }
.claims-demo figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* Two kinds of events */
.events { background: var(--white); border-block: 1px solid var(--line); }
.events-head { max-width: 40em; }
.event-types { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.event-type { border-radius: 32px; padding: 44px 40px 0; overflow: hidden; display: flex; flex-direction: column; }
.event-type.exchange { background: var(--cranberry-light); }
.event-type.celebration { background: var(--pine-light); }
.event-type h3 { font-size: 1.9rem; }
.event-type.exchange h3 { color: var(--cranberry-deep); }
.event-type.celebration h3 { color: var(--pine-deep); }
.event-type .for { font-weight: 600; margin: 6px 0 14px; }
.event-type p { color: #4A443D; max-width: 26em; }
.event-type .phone { margin: 44px auto -180px; height: 560px; box-shadow: 0 30px 60px -24px rgba(31, 27, 22, 0.4); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--cranberry); padding-top: 20px; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--cranberry); line-height: 1; display: block; margin-bottom: 14px; }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; }

/* Download */
.download { background: var(--pine); color: var(--cream); text-align: center; }
.download img { width: 96px; height: 96px; margin: 0 auto 24px; }
.download p { color: var(--pine-light); font-size: 1.15rem; margin: 16px auto 36px; max-width: 30em; }
.download .stores { justify-content: center; }
.download .soon { color: var(--pine-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFC7BD; padding: 56px 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; }
.site-footer .brand span { color: var(--cream); font-size: 1.4rem; }
.site-footer .brand img { width: 34px; height: 34px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { color: #CFC7BD; text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }

/* ---------- Legal / support pages ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 72px 24px 120px; }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--cranberry); }
.doc .updated { color: var(--ink-soft); margin: 12px 0 40px; font-size: 0.95rem; }
.doc h2 { font-size: 1.6rem; margin: 48px 0 12px; }
.doc p, .doc li { line-height: 1.7; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.callout { background: var(--cranberry-light); border-radius: 20px; padding: 24px 28px; margin: 24px 0; }
.callout p + p { margin-top: 10px; }
.steps-inline { counter-reset: s; list-style: none; padding: 0; }
.steps-inline li { counter-increment: s; display: flex; gap: 14px; }
.steps-inline li::before {
  content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--cranberry); color: var(--white); font-weight: 600; font-size: 0.9rem;
  display: grid; place-items: center; margin-top: 1px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero-grid, .claims-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 0; }
  .hero-phones { min-height: 0; padding: 40px 0 0; margin-bottom: -60px; }
  .hero-phones figure:first-child { transform: translateY(0) rotate(-3deg); }
  .hero-phones figure:last-child { transform: translateY(40px) rotate(2deg); }
  .claims-grid { gap: 48px; }
  .event-types { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .section { padding: 96px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-link { display: none; }
  .hero-phones { zoom: 0.56; padding: 72px 0 120px; margin-bottom: 0; }
  .event-type { padding: 32px 24px 0; }
  .event-type .phone { zoom: 0.85; }
  .claims-demo { padding: 16px; border-radius: 24px; }
  .claims-demo .price { display: none; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* The cranberry logo needs a cream backing on the cranberry hero */
.site-header:not(.light) .brand img { background: var(--cream); border-radius: 50%; padding: 4px; }
