/* Colours of the app's ink-wash theme (lib/core/theme/app_theme.dart, AppColors) */
:root {
  --paper: #EFE5CF;
  --paper2: #F5EEDD;
  --paper3: #E6D9BD;
  --ink: #2F2722;
  --ink2: rgba(47, 39, 34, .66);
  --ink3: rgba(47, 39, 34, .42);
  --line: rgba(47, 39, 34, .16);
  --red: #B5352A;
  --on-red: #F6EADB;
  --lotus: #D9809A;
  --leaf: #5B7A5E;
  --gold: #A8823A;
  --serif: 'Lora', 'Noto Serif', Georgia, serif;
  --body: 'Be Vietnam Pro', 'Noto Sans', system-ui, sans-serif;
  --script: 'Dancing Script', cursive;
  --radius: 18px;
}

/* the same faces per language as the app (AppText) */
:root[lang="zh-Hant"] { --serif: 'Noto Serif TC', serif; --body: 'Noto Sans TC', sans-serif; --script: 'LXGW WenKai TC', 'Noto Serif TC', serif; }
:root[lang="zh-Hans"] { --serif: 'Noto Serif SC', serif; --body: 'Noto Sans SC', sans-serif; --script: 'Ma Shan Zheng', 'Noto Serif SC', serif; }
:root[lang="ja"] { --serif: 'Noto Serif JP', serif; --body: 'Noto Sans JP', sans-serif; --script: 'Yuji Syuku', 'Noto Serif JP', serif; }
:root[lang="ko"] { --serif: 'Noto Serif KR', serif; --body: 'Noto Sans KR', sans-serif; --script: 'Nanum Brush Script', 'Noto Serif KR', serif; }
:root[lang="th"] { --serif: 'Noto Serif Thai', serif; --body: 'Noto Sans Thai', sans-serif; --script: 'Charm', 'Noto Serif Thai', serif; }
:root[lang="my"] { --serif: 'Noto Serif Myanmar', serif; --body: 'Noto Sans Myanmar', sans-serif; --script: 'Padauk', 'Noto Serif Myanmar', serif; }
:root[lang="km"] { --serif: 'Noto Serif Khmer', serif; --body: 'Noto Sans Khmer', sans-serif; --script: 'Battambang', 'Noto Serif Khmer', serif; }
:root[lang="lo"] { --serif: 'Noto Serif Lao', serif; --body: 'Noto Sans Lao', sans-serif; --script: 'Noto Serif Lao', serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  background-color: var(--paper);
  /* rice-paper grain */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .18 0 0 0 0 .15 0 0 0 0 .13 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  overflow-x: hidden;
}
:root[lang="my"] body, :root[lang="km"] body, :root[lang="lo"] body, :root[lang="th"] body { line-height: 1.85; }
/* scripts with tall stacked marks need more room between heading lines */
:root[lang="my"] :is(h1, h2, h3, .tagline), :root[lang="km"] :is(h1, h2, h3, .tagline),
:root[lang="lo"] :is(h1, h2, h3, .tagline), :root[lang="th"] :is(h1, h2, h3, .tagline) { line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* header */
.top { position: relative; z-index: 2; }
.bar { display: flex; align-items: center; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.seal {
  display: grid; place-items: center; text-align: center;
  width: 46px; height: 46px; border-radius: 8px; transform: rotate(-4deg);
  background: var(--red); color: var(--on-red);
  font: 600 11px/1.05 var(--serif);
  box-shadow: inset 0 0 0 2px rgba(246, 234, 219, .28), 0 4px 10px -4px rgba(181, 53, 42, .6);
}
.brand-name { font: 600 21px/1 var(--serif); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.lang {
  appearance: none; -webkit-appearance: none;
  font: 500 14px var(--body); color: var(--ink);
  background: var(--paper2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%232F2722' stroke-width='1.6'/></svg>") no-repeat right 12px center;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 34px 8px 14px; cursor: pointer; max-width: 160px;
}
.lang:focus-visible, a:focus-visible, .btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* hero */
.hero { position: relative; padding: 24px 0 72px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -110px 0 auto; height: 560px; z-index: -1;
  background: url("mountains.svg") center bottom / cover no-repeat;
  opacity: .9;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.kicker { font: 500 14px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin: 0 0 10px; }
h1 { font: 600 clamp(44px, 7vw, 76px)/1.05 var(--serif); margin: 0 0 14px; letter-spacing: -.01em; }
.tagline { font: 500 clamp(24px, 3.4vw, 34px)/1.3 var(--script); color: var(--ink); margin: 0 0 22px; }
.lead { font-size: 18.5px; color: var(--ink2); max-width: 34em; margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 176px; padding: 10px 22px; border-radius: 14px;
  background: var(--ink); color: var(--paper2); text-decoration: none;
  box-shadow: 0 10px 22px -12px rgba(47, 39, 34, .7);
  transition: transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn small { font: 400 12px/1.2 var(--body); opacity: .75; }
.btn strong { font: 600 19px/1.25 var(--body); }
.btn.soon { background: transparent; color: var(--ink2); box-shadow: none; border: 1.5px dashed var(--ink3); cursor: default; }
.btn.soon:hover { transform: none; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 26px 0 0; color: var(--ink2); font-size: 15px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); opacity: .8; }

.phone {
  position: relative; width: min(330px, 78vw); margin-inline: auto;
  padding: 9px; border-radius: 40px; background: var(--ink);
  box-shadow: 0 40px 70px -30px rgba(47, 39, 34, .55), 0 0 0 1px rgba(47, 39, 34, .3);
}
.phone img { border-radius: 32px; width: 100%; height: auto; aspect-ratio: 540 / 1115; background: var(--paper2); }
.hero .phone { transform: rotate(2deg); }
.ripple {
  position: absolute; z-index: -1; width: 520px; height: 520px; left: 50%; top: 50%; translate: -50% -46%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 122, 94, .18), rgba(91, 122, 94, 0) 70%);
}

.hero-shot { position: relative; }
/* falling petals, as in the app's pond */
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.petal { position: absolute; width: 12px; height: 8px; border-radius: 70% 0 70% 0; background: var(--lotus); opacity: .7; top: -20px; animation: fall linear infinite; pointer-events: none; }
.petal:nth-child(1) { left: 12%; animation-duration: 19s; animation-delay: -3s; }
.petal:nth-child(2) { left: 46%; animation-duration: 23s; animation-delay: -11s; }
.petal:nth-child(3) { left: 71%; animation-duration: 17s; animation-delay: -7s; }
.petal:nth-child(4) { left: 88%; animation-duration: 26s; animation-delay: -15s; }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-40px, 52vh) rotate(160deg); }
  100% { transform: translate(20px, 105vh) rotate(320deg); }
}
@media (prefers-reduced-motion: reduce) {
  .petal { display: none; }
  html { scroll-behavior: auto; }
  .btn, .hero .phone { transition: none; transform: none; }
}

/* sections */
section { padding: 72px 0; }
.brush { display: block; width: 120px; height: 14px; margin: 0 0 14px; color: var(--red); }
h2 { font: 600 clamp(30px, 4vw, 42px)/1.15 var(--serif); margin: 0 0 14px; }
.sub { color: var(--ink2); max-width: 40em; margin: 0 0 36px; }
.center { text-align: center; }
.center .brush, .center .sub { margin-inline: auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: rgba(245, 238, 221, .72); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step-num {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px;
  border-radius: 50%; border: 2px solid var(--ink); border-right-color: transparent; transform: rotate(-30deg);
  font: 600 22px var(--serif);
}
.step-num span { transform: rotate(30deg); }
.step h3 { font: 600 24px/1.2 var(--serif); margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink2); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 56px; }
.gallery figure { margin: 0; }
.gallery .phone { width: 100%; max-width: 280px; }
.gallery figcaption { text-align: center; color: var(--ink2); font-size: 15px; margin-top: 16px; padding-inline: 8px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 26px 24px; border-radius: var(--radius); background: rgba(245, 238, 221, .72); border: 1px solid var(--line); }
.feature svg { width: 34px; height: 34px; color: var(--red); margin-bottom: 14px; }
.feature:nth-child(3n+2) svg { color: var(--leaf); }
.feature:nth-child(3n) svg { color: var(--gold); }
.feature h3 { font: 600 21px/1.25 var(--serif); margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink2); font-size: 16px; }

.vow {
  position: relative; max-width: 820px; margin-inline: auto; text-align: center;
  padding: 52px 40px; border-radius: 26px; background: var(--paper2);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(47, 39, 34, .5);
}
.vow .seal { position: absolute; right: 26px; bottom: 22px; width: 40px; height: 40px; font-size: 10px; opacity: .85; }
.vow p { font: 500 clamp(19px, 2.3vw, 23px)/1.6 var(--serif); margin: 0; }
.vow h2 { margin-bottom: 18px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(245, 238, 221, .6); }
.card h3 { font: 600 24px/1.2 var(--serif); margin: 0 0 10px; }
.card p { margin: 0 0 14px; color: var(--ink2); }
.card p:last-child { margin-bottom: 0; }
.card p + h3 { margin-top: 26px; }
.mail { font: 600 18px var(--body); word-break: break-all; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--ink2); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.foot .spacer { flex: 1; }
footer a { color: var(--ink2); }

/* privacy page */
.doc { max-width: 760px; padding: 24px 0 80px; }
.doc h1 { font-size: clamp(36px, 6vw, 54px); }
.doc .updated { color: var(--ink3); margin: 0 0 28px; font-size: 15px; }
.doc .intro { font-size: 18.5px; color: var(--ink2); margin: 0 0 34px; }
.doc h2 { font-size: clamp(22px, 3vw, 27px); margin: 38px 0 10px; display: flex; align-items: baseline; gap: 12px; }
.doc h2 .n { font: 500 14px var(--body); color: var(--red); min-width: 1.5em; }
.doc p { margin: 0; color: var(--ink2); }
.doc .back { display: inline-block; margin-bottom: 20px; text-decoration: none; }
.page-hero { position: relative; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: -110px 0 auto; height: 360px; z-index: -1;
  background: url("mountains.svg") center bottom / cover no-repeat; opacity: .55;
}

/* phones and narrow screens */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-bottom: 48px; text-align: left; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; gap: 20px; }
  .gallery figure { scroll-snap-align: center; }
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a { display: none; }
  .nav { gap: 10px; }
  .brand-name { font-size: 19px; }
  .steps, .features { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .lead { font-size: 17px; }
  .btn { flex: 1 1 150px; min-width: 0; }
  .vow { padding: 40px 22px 64px; }
  .ripple { width: 360px; height: 360px; }
}
