/* nine27 marketing site — Tendria's layout (floating nav, one-screen hero, one supporting section,
   compact footer), re-skinned light: paper, cut-paper arches, bronze foil, sparse ink. */

body.site { overflow-x: hidden; }

/* ---------------- nav ---------------- */
.site-nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.site-nav nav {
  pointer-events: auto; display: flex; align-items: center; gap: 2px; padding: 5px;
  border-radius: 6px; border: 1px solid rgba(211, 201, 181, .8);
  background: rgba(255, 253, 248, .72);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 10px 30px -18px rgba(22, 25, 29, .35), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.site-nav a, .site-nav button {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 4px; border: 0; background: none; cursor: pointer;
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2);
  font-stretch: 112%; font-variation-settings: "wdth" 112; transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--ink); background: rgba(238, 233, 222, .7); }
.site-nav .nav-mark { padding: 0 10px 0 8px; }
.site-nav .nav-mark img { width: 20px; height: 20px; }
.site-nav .join { background: var(--ink); color: #F6F1E4; margin-left: 4px; }
.site-nav .join:hover { background: var(--ink-2); color: #fff; }
@media (min-width: 640px) { .site-nav { top: 22px; } .site-nav a, .site-nav button { padding: 0 18px; } }

/* ---------------- hero ---------------- */
.hero {
  position: relative; isolation: isolate; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 110px 20px 120px;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(233, 220, 188, .55), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(214, 203, 180, .45), transparent 70%),
    var(--paper);
}
/* cut-paper arches: nested sheets, each casting a soft shadow on the one behind */
.arches { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: flex; justify-content: center; }
.arches i {
  position: absolute; bottom: -2px; border-radius: 9999px 9999px 0 0;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .9) inset, 0 -18px 40px -22px rgba(92, 72, 38, .35), 0 -2px 6px -2px rgba(92, 72, 38, .12);
  animation: archRise 1.4s var(--ease) both;
}
.arches i:nth-child(1) { width: min(150vw, 1500px); height: 96%; background: #F2EDE3; animation-delay: .05s; }
.arches i:nth-child(2) { width: min(118vw, 1180px); height: 84%; background: #F6F2EA; animation-delay: .12s; }
.arches i:nth-child(3) { width: min(90vw, 880px); height: 71%; background: #F9F6F0; animation-delay: .19s; }
.arches i:nth-child(4) { width: min(64vw, 600px); height: 56%; background: #FCFAF5; animation-delay: .26s; }
.arches i::after { /* hairline foil edge on each cut */
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(196, 160, 90, .28); border-bottom: 0;
}
.arches::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .12; mix-blend-mode: multiply; }
@keyframes archRise { from { transform: translateY(6%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .arches i:nth-child(1) { width: 190vw; height: 92%; }
  .arches i:nth-child(2) { width: 150vw; height: 80%; }
  .arches i:nth-child(3) { width: 112vw; height: 66%; }
  .arches i:nth-child(4) { width: 80vw; height: 50%; }
}

.rise { animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-crest { width: clamp(64px, 12vw, 104px); height: auto; filter: drop-shadow(0 6px 14px rgba(111, 82, 38, .25)); animation-delay: .35s; }
.hero .wordmark { margin-top: 22px; font-size: clamp(46px, 14vw, 148px); color: var(--ink); letter-spacing: .16em; padding-left: .16em; animation-delay: .45s; }
.hero .foil-rule { width: 72px; margin: 26px auto 22px; animation-delay: .55s; }
.hero .tagline { margin: 0; font-family: var(--font-serif); font-size: clamp(24px, 4.4vw, 38px); line-height: 1.2; color: var(--ink); max-width: 20ch; animation-delay: .6s; }
.hero .sub { margin: 14px 0 0; max-width: 40ch; font-size: clamp(15px, 1.7vw, 17px); color: var(--muted); animation-delay: .68s; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; animation-delay: .76s; }
.hero .ctas .btn { min-height: 52px; padding: 0 26px; }

.hero-verse {
  position: absolute; left: 0; right: 0; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); animation-delay: 1s; padding: 0 20px;
}
.hero-verse span { font-family: var(--font-serif); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted); }

/* ---------------- sections ---------------- */
.band { position: relative; padding: 96px 20px; }
.wrap { max-width: 1080px; margin: 0 auto; }
.band-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.band-head .label { color: var(--bronze); }
.band-head h2 {
  margin: 12px 0 14px; font-size: clamp(30px, 5vw, 48px); line-height: 1.02; font-weight: 800; color: var(--ink);
  text-transform: uppercase; letter-spacing: .01em; font-stretch: 112%; font-variation-settings: "wdth" 112;
}
.band-head p { margin: 0; color: var(--muted); font-size: 17px; }

/* deckle edge: torn-paper top on a band */
.deckle::before {
  content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14V9l4-2 5 3 6-4 4 2 7-5 5 4 4-1 6 3 5-4 6 2 4-3 5 5 6-3 4 1 6-4 5 3 5-2 4 3 6-5 5 4 4-2 5 3v8z'/%3E%3C/svg%3E") bottom / 240px 14px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14V9l4-2 5 3 6-4 4 2 7-5 5 4 4-1 6 3 5-4 6 2 4-3 5 5 6-3 4 1 6-4 5 3 5-2 4 3 6-5 5 4 4-2 5 3v8z'/%3E%3C/svg%3E") bottom / 240px 14px repeat-x;
}
.band.paper2 { background: var(--paper-2); }

.pillars { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar {
  position: relative; padding: 26px 22px 24px; background: var(--sheet); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 1px 2px rgba(22, 25, 29, .05), 5px 5px 0 -1px var(--paper), 5px 5px 0 0 var(--line);
}
.pillar::after { /* folded corner */
  content: ""; position: absolute; top: -1px; right: -1px; width: 20px; height: 20px;
  background: linear-gradient(225deg, var(--paper-2) 50%, var(--sheet-edge) 50%); border-bottom-left-radius: 3px;
  box-shadow: -1px 1px 1px rgba(22, 25, 29, .06);
}
.pillar-num { font-size: 12px; font-weight: 800; color: var(--bronze); letter-spacing: .1em; }
.pillar-ico { width: 44px; height: 44px; margin: 18px 0 16px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 3px; color: var(--ink); }
.pillar-ico svg { width: 22px; height: 22px; }
.pillar h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); font-stretch: 112%; font-variation-settings: "wdth" 112; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

.verse-band { margin-top: 64px; background: var(--ink); color: #EDE6D6; border-radius: 6px; padding: 48px 28px; text-align: center; position: relative; overflow: hidden; }
.verse-band::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(196, 160, 90, .35); border-radius: 3px; pointer-events: none; }
.verse-band img { width: 40px; margin: 0 auto 20px; }
.verse-band blockquote { margin: 0 auto; max-width: 30ch; font-family: var(--font-serif); font-size: clamp(22px, 3.4vw, 32px); line-height: 1.35; color: #F6F1E4; }
.verse-band cite { display: block; margin-top: 18px; font-style: normal; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.verse-band .btn { margin-top: 30px; background: var(--foil); color: var(--ink); }
.verse-band .btn:hover { filter: brightness(1.06); }

/* ---------------- rule page ---------------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 150px 20px 90px; text-align: center; }
.page-hero .arches i:nth-child(1) { height: 120%; } .page-hero .arches i:nth-child(2) { height: 100%; }
.page-hero .arches i:nth-child(3) { height: 80%; } .page-hero .arches i:nth-child(4) { height: 60%; }
.page-hero h1 { margin: 16px 0 14px; font-size: clamp(40px, 8vw, 84px); line-height: 1; font-weight: 800; color: var(--ink); text-transform: uppercase; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: .06em; }
.page-hero p { margin: 0 auto; max-width: 46ch; font-size: 18px; color: var(--muted); }
.page-hero .label { color: var(--bronze); }

.two { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 64px; } }
.prose-lg p { font-size: 18px; line-height: 1.65; color: var(--ink-2); margin: 0 0 16px; }
.prose-lg p strong { color: var(--ink); }
.kicker { font-family: var(--font-serif); font-size: clamp(26px, 3.6vw, 36px); line-height: 1.25; color: var(--ink); margin: 0; }

.day-line { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.day-line li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.day-line b { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); padding-top: 4px; }
.day-line h4 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: .05em; }
.day-line p { margin: 0; color: var(--muted); font-size: 15px; }

.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk { background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-align: center; }
.wk-top { padding: 10px 4px 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.wk-type { padding: 7px 2px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wk-type.meat { background: var(--meat-wash); color: var(--meat); }
.wk-type.vegan { background: var(--vegan-wash); color: var(--vegan); }
.wk-type.fast { background: var(--fast-wash); color: var(--fast); }
.wk-train { padding: 10px 4px 12px; font-size: 11.5px; line-height: 1.3; color: var(--ink-2); min-height: 58px; }
@media (max-width: 640px) {
  .week-grid { grid-template-columns: 1fr; }
  .wk { display: grid; grid-template-columns: 64px 96px 1fr; align-items: center; text-align: left; }
  .wk-top, .wk-type, .wk-train { padding: 12px 10px; min-height: 0; }
  .wk-type { height: 100%; display: flex; align-items: center; }
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; gap: 8px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 1px; }

/* phone frame with the live app inside */
.phone { position: relative; width: 300px; max-width: 100%; margin: 0 auto; aspect-ratio: 390 / 820; border-radius: 42px; padding: 11px; background: var(--ink); box-shadow: 0 40px 80px -40px rgba(22, 25, 29, .6), inset 0 0 0 2px #3a3f46; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 20px; background: #000; z-index: 2; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--paper); }
.phone iframe { position: absolute; top: 0; left: 0; width: 390px; height: 820px; border: 0; transform-origin: 0 0; }
.inside-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.inside-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.inside-list .pillar-ico { width: 36px; height: 36px; margin: 0; }
.inside-list .pillar-ico svg { width: 18px; height: 18px; }
.inside-list h4 { margin: 2px 0 2px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.inside-list p { margin: 0; color: var(--muted); font-size: 15px; }

.faq { border-top: 1px solid var(--line-strong); max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--bronze); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: -6px 0 20px; color: var(--ink-2); font-size: 16px; max-width: 62ch; }

/* ---------------- footer ---------------- */
.site-foot { border-top: 1px solid var(--line); padding: 34px 20px calc(34px + env(safe-area-inset-bottom)); background: var(--paper); }
.site-foot .wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font-size: 12.5px; color: var(--muted); }
.site-foot .brandline { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.site-foot .brandline img { width: 18px; }
.site-foot .brandline .wordmark { font-size: 11px; }
.site-foot nav { display: flex; gap: 20px; }
.site-foot a { text-decoration: none; color: var(--ink-2); }
.site-foot a:hover { color: var(--bronze); }
@media (min-width: 720px) { .site-foot .wrap { flex-direction: row; justify-content: space-between; text-align: left; } }

/* ---------------- join modal ---------------- */
.j-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(22, 25, 29, .42); display: flex; align-items: flex-end; justify-content: center; animation: jf .2s ease both; }
@keyframes jf { from { opacity: 0; } }
.j-modal { width: 100%; max-width: 460px; background: var(--paper); border-radius: 12px 12px 0 0; padding: 30px 22px calc(24px + env(safe-area-inset-bottom)); text-align: center; animation: ju .4s var(--ease) both; position: relative; }
@keyframes ju { from { transform: translateY(40px); } }
.j-modal::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(196, 160, 90, .35); border-radius: 6px; pointer-events: none; }
.j-modal img { width: 44px; margin: 0 auto 14px; }
.j-modal h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); font-stretch: 112%; font-variation-settings: "wdth" 112; }
.j-modal p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.j-modal form { display: grid; gap: 10px; text-align: left; position: relative; }
.j-modal input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--sheet); font: 16px var(--font-body); color: var(--ink); }
.j-modal input:focus { outline: none; border-color: var(--bronze); }
.j-modal .btn { width: 100%; min-height: 52px; margin-top: 4px; }
.j-modal .err { color: var(--meat); font-size: 13px; min-height: 1em; margin: 0; }
.j-modal .fine { font-size: 12px; margin: 12px 0 0; color: var(--faint); }
.j-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; z-index: 1; }
@media (min-width: 640px) { .j-scrim { align-items: center; } .j-modal { border-radius: 10px; padding-bottom: 28px; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
