/* Nichi landing page in the app's Washi identity: washi paper, sumi ink, shu red for the
   main action, kin gold for mends. Mobile first. */
:root {
  --bg: #F3EEE4;
  --card: #FAF6EE;
  --deep: #E6DED0;
  --text: #22201C;
  --sub: #6B6355;   /* darker than the app's grey, for body-text contrast on paper */
  --line: #DED5C6;
  --shu: #C8412B;
  --on-shu: #FBF3E8;
  --gold: #9C7518;  /* kin gold, darkened to read as text */
  --error: #B3341F;
  --radius: 14px;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.36 0 0 0 0 0.26 0 0 0 0.09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg) var(--grain);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 680px; }

section { padding-top: 48px; padding-bottom: 48px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(40px, 9vw, 64px); line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(26px, 5vw, 34px); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 12px; text-wrap: balance; }
h3 { font-size: 18px; margin-bottom: 4px; }
p + p { margin-top: 12px; }
.gold { color: var(--gold); font-weight: 600; }
ul.plain { list-style: none; }
ul.plain li { position: relative; padding: 6px 0 6px 24px; color: var(--sub); }
ul.plain li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 9px; border-radius: 2px; background: var(--text); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 6px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 600 23px var(--serif); text-decoration: none; }
.wordmark img { border-radius: 7px; }
nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav a { text-decoration: none; color: var(--sub); }
nav a:not(.nav-cta) { display: none; }
.nav-cta { padding: 8px 14px; border-radius: 12px; background: var(--shu); color: var(--on-shu) !important; font-weight: 600; }
@media (min-width: 720px) { nav a:not(.nav-cta) { display: inline; } }

/* Hero: text, then the phone; side by side on wide screens */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 0; text-align: center; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sub); margin-bottom: 12px; }
.lead { margin: 16px auto 0; max-width: 32em; font-size: 19px; color: var(--sub); }
.note { margin-top: 14px; font-size: 15px; color: var(--sub); }
.hero-phone { width: min(320px, 82vw); margin: 0 auto; }
@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr) 360px; align-items: end; text-align: left; padding-top: 48px; }
  .hero-text { padding-bottom: 72px; }
  .lead { margin-left: 0; }
  .hero .actions { justify-content: flex-start; }
  .hero-phone { width: 360px; }
}

/* Buttons */
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; align-items: stretch; }
.btn {
  display: inline-block; min-height: 52px; padding: 14px 24px; border-radius: var(--radius);
  font: inherit; font-weight: 600; cursor: pointer; border: 2px solid var(--text);
}
.btn.primary { background: var(--shu); border-color: var(--shu); color: var(--on-shu); }
.btn.secondary { background: transparent; color: var(--text); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }
/* Once the form is open, the chosen button stays dark and the other turns outline. */
#choices .btn[aria-pressed="true"] { background: var(--shu); border-color: var(--shu); color: var(--on-shu); }
#choices .btn[aria-pressed="false"] { background: transparent; border-color: var(--text); color: var(--text); }
@media (min-width: 560px) { .actions { flex-direction: row; justify-content: center; } }

/* How it works: three numbered steps */
.steps { border-top: 1px solid var(--line); }
.steps ol { list-style: none; counter-reset: step; display: grid; gap: 18px; margin-top: 8px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; color: var(--sub); }
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; background: var(--text); color: var(--bg); font: 600 16px var(--serif);
}
@media (min-width: 720px) { .steps ol { grid-template-columns: repeat(3, 1fr); } }

/* Feature rows: image and text, alternating sides on wide screens */
.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.disclaimer { font-size: 14px; color: var(--sub); text-align: center; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.feature p { color: var(--sub); }
.feature > img { width: 100%; max-width: 460px; margin: 0 auto; border-radius: 22px; }
@media (min-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .feature.flip > :first-child { order: 2; }
}
.theme-stack { display: grid; gap: 12px; max-width: 420px; margin: 0 auto; width: 100%; }
.theme-stack img { border-radius: 22px; }
.shot { border: 1px solid var(--line); }

/* App privacy promises: short claims in a grid */
.promise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.promise-grid > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.promise-grid h3 { font-size: 18px; }
.promise-grid p { font-size: 15px; line-height: 1.4; color: var(--sub); }
@media (min-width: 860px) { .promise-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }

/* Everything in the app */
.feature-grid { display: grid; gap: 10px; margin-top: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.tile h3 { font-size: 16px; }
.tile p { font-size: 14px; line-height: 1.4; color: var(--sub); }
.tag { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--deep); color: var(--sub); }
.tile.pro .tag { background: var(--text); color: var(--bg); }
@media (min-width: 860px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .tile { padding: 16px 18px; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.pricing-text > p { color: var(--sub); }
.pricing ul { margin-top: 12px; }
.paywall { width: min(300px, 78vw); margin: 0 auto; }
@media (min-width: 860px) { .pricing { grid-template-columns: minmax(0, 1fr) 340px; } .paywall { width: 320px; } }

/* Founder price and form */
.founder { border-top: 1px solid var(--line); }
.founder > p { color: var(--sub); }
.founder .actions { justify-content: flex-start; }
.signup { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.signup .field { display: block; border: 0; margin-bottom: 18px; }
.signup .field > span, .signup legend { display: block; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.signup small { font-weight: 400; color: var(--sub); }
.signup input[type="email"], .signup select, .signup textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--text); background: var(--bg);
}
.option { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; color: var(--text); }
.option input { margin-top: 5px; accent-color: var(--text); }
.check { margin-bottom: 18px; font-size: 15px; }
.signup.notify .reserve-only { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--error); font-size: 15px; margin-top: 10px; }
.error:empty { display: none; }
.fine { font-size: 14px; color: var(--sub); margin-top: 12px; }
.done { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }

/* FAQ and privacy */
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 8px; color: var(--sub); }
.privacy dl { display: grid; gap: 4px 0; font-size: 15px; }
.privacy dt { font-weight: 600; margin-top: 10px; }
.privacy dd { color: var(--sub); }

.bottom { padding-top: 24px; padding-bottom: 40px; font-size: 14px; color: var(--sub); }

/* Small pages: confirmed, link expired, unsubscribe */
.page { max-width: 520px; margin: 0 auto; padding: 60px 20px; }
.page h1 { font-size: 34px; margin-bottom: 14px; }
.page p { color: var(--sub); }
.page .btn { margin-top: 24px; }
.privacy-intro { color: var(--sub); margin-bottom: 8px; }
