/* Leaf to Wing — site styles.
   Colors come from the game's "Mevsimler" look (ios/TirtilDefteri/Game/Look.swift), spring season. */

@font-face { font-family: "Mynerve"; src: url("/fonts/Mynerve-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/EBGaramond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/EBGaramond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("/fonts/EBGaramond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("/fonts/EBGaramond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  /* spring */
  --paper: #F1F4E4;
  --paper-light: #F9FBF1;
  --ink: #34402F;
  --ink-soft: #5B6853;
  --lead: #323E34;
  --wash-1: #9FD08A;
  --wash-2: #B8DC8E;
  --wash-3: #8CC79B;
  --hatch: #467D46;
  --body: #F2CF5E;
  --flower: #E46A93;
  --flower-2: #E0453A;
  --chip: #E1E8CF;
  --on: #3F5A2C;
  --hint: #2F6BD0;
  /* other seasons (for season cards) */
  --summer-paper: #F8EFD3; --summer-wash: #A4C460; --summer-body: #E0845C; --summer-flower: #2E7BD6;
  --autumn-paper: #F6E6D6; --autumn-wash: #E8A55A; --autumn-body: #93BD6F; --autumn-flower: #B8336A;
  --winter-paper: #E9EEF1; --winter-wash: #A9C6DA; --winter-body: #D67267; --winter-flower: #C8323C;

  --hand: "Mynerve", "Segoe Print", "Bradley Hand", cursive;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--paper);
  /* paper grain: fractal noise, very faint */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .24  0 0 0 0 .2  0 0 0 .55 0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='.22'/></svg>");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--on); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px dashed var(--hint); outline-offset: 4px; border-radius: 6px; }
.hand { font-family: var(--hand); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper-light); padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { top: 12px; }

/* ---------- pencil + watercolor helpers (drawn by /js/sketch.js) ---------- */
.sk { position: relative; isolation: isolate; }
.sk > svg.sk-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: -1; }
.sk-pencil { fill: none; stroke: var(--lead); stroke-linecap: round; stroke-linejoin: round; }
.wash { position: absolute; pointer-events: none; z-index: -1; }

/* ---------- layout ---------- */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
section { position: relative; }

/* header */
.site-header { padding: 18px 0 6px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 1px 0 rgba(50,62,52,.25), 0 6px 14px -8px rgba(50,62,52,.5); }
.brand span { font-family: var(--hand); font-size: 30px; line-height: 1; letter-spacing: .2px; }
.nav { display: flex; gap: clamp(12px, 2.4vw, 28px); font-family: var(--hand); font-size: 21px; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 2px; }
.nav a:hover { color: var(--on); }
@media (max-width: 640px) { .nav .opt { display: none; } .brand span { font-size: 26px; } .brand img { width: 38px; height: 38px; } }

/* buttons: pencil box + optional offset watercolor wash (like the app's Next button) */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--hand); font-size: 21px; line-height: 1.1;
  color: var(--ink); text-decoration: none;
  padding: 13px 22px 12px; border: 0; background: none; cursor: pointer;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px) rotate(-.3deg); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn > span { white-space: nowrap; }
.btn small { display: block; font-size: 15px; color: var(--ink-soft); }
.btn .ico { width: 26px; height: 26px; flex: none; }
.btn .ico path, .btn .ico rect, .btn .ico circle { fill: none; stroke: var(--lead); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stores { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 30px; }
.store-note { margin: 14px 0 0; font-size: 17px; color: var(--ink-soft); font-style: italic; }

/* ---------- hero ---------- */
.hero { padding: clamp(24px, 5vw, 64px) 0 clamp(40px, 7vw, 90px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.kicker { font-family: var(--hand); font-size: 22px; color: var(--on); margin: 0 0 6px; display: inline-block; }
.hero h1 { font-family: var(--hand); font-weight: 400; font-size: clamp(48px, 6.6vw, 88px); line-height: 1.02; margin: 0 0 22px; letter-spacing: -.5px; }
.hero h1 .l2 { display: block; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero .lede { font-size: clamp(20px, 1.9vw, 23px); max-width: 33em; margin: 0; color: var(--ink); }

/* phone with the playable demo */
.demo-col { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; height: clamp(560px, calc(100svh - 120px), 760px); width: auto; max-width: 100%; aspect-ratio: 372 / 760;
  border-radius: 46px; padding: 12px;
  background: var(--paper-light);
  box-shadow: 0 2px 0 rgba(50,62,52,.08), 0 30px 60px -30px rgba(52,64,47,.55), 0 10px 24px -14px rgba(52,64,47,.35);
}
.phone iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 35px; background: var(--paper); }
.phone .notch { position: absolute; top: 22px; left: 50%; width: 96px; height: 26px; margin-left: -48px; border-radius: 20px; background: rgba(52,64,47,.9); z-index: 2; pointer-events: none; display: none; }
.try {
  position: absolute; font-family: var(--hand); font-size: 22px; line-height: 1.15; color: var(--on);
  left: -150px; top: 22%; width: 150px; text-align: right; transform: rotate(-6deg);
  transition: opacity .5s ease;
}
.try svg { position: absolute; right: -66px; top: 34px; width: 92px; height: 70px; overflow: visible; }
.try.gone { opacity: 0; }
.done-note {
  position: absolute; right: -52px; top: 3%; width: 210px; padding: 16px 18px 14px;
  font-family: var(--hand); font-size: 20px; line-height: 1.2; color: var(--ink);
  transform: rotate(3deg) translateY(-10px); opacity: 0; pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}
.done-note.show { opacity: 1; transform: rotate(3deg); }
.done-note p { margin: 0; }
.open-full { display: none; margin-top: 14px; text-align: center; font-family: var(--hand); font-size: 20px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .copy { text-align: left; }
  .try { display: none; }
  .done-note { right: -4px; top: -18px; width: 190px; font-size: 18px; }
  .open-full { display: block; }
}
@media (max-width: 1180px) and (min-width: 901px) { .try { left: -96px; width: 120px; font-size: 20px; } }
@media (max-width: 520px) {
  .phone { width: 100%; max-width: 360px; aspect-ratio: auto; height: min(150vw, 680px, calc(100svh - 120px)); border-radius: 38px; padding: 9px; }
  .phone iframe { border-radius: 30px; }
  .demo-col { padding-inline: 10px; }
}

/* ---------- section headings ---------- */
.sec { padding: clamp(56px, 8vw, 110px) 0; }
.sec-head { max-width: 760px; margin: 0 auto clamp(30px, 4vw, 54px); text-align: center; }
.sec-head h2 { font-family: var(--hand); font-weight: 400; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.05; margin: 0 0 14px; }
.sec-head p { margin: 0 auto; max-width: 36em; color: var(--ink-soft); font-size: 21px; }
.u { position: relative; display: inline-block; }
.u > svg { position: absolute; left: -2%; width: 104%; bottom: -10px; height: 16px; overflow: visible; pointer-events: none; }

/* rule between sections: a pencil line with a sprig */
.rule { display: block; width: min(560px, 80%); height: 30px; margin: 0 auto; overflow: visible; }

/* ---------- how it plays ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.step { text-align: center; }
.step figure { margin: 0 auto 14px; position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.step figure img { width: 92%; height: 92%; object-fit: contain; }
.step .n { font-family: var(--hand); font-size: 46px; line-height: 1; color: var(--on); display: block; margin-bottom: 2px; }
.step h3 { font-family: var(--hand); font-weight: 400; font-size: 30px; margin: 0 0 6px; }
.step p { margin: 0 auto; max-width: 19em; font-size: 19px; color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; gap: 44px; } }

/* ---------- path becomes wings ---------- */
.wings { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; gap: 10px; max-width: 980px; margin: 0 auto; }
.wings figure { margin: 0; text-align: center; }
.wings figcaption { font-family: var(--hand); font-size: 22px; color: var(--ink-soft); margin-top: 8px; }
.wings .arrow { width: 120px; height: 80px; overflow: visible; }
@media (max-width: 760px) { .wings { grid-template-columns: 1fr; max-width: 420px; } .wings .arrow { transform: rotate(90deg); margin: -6px auto; } }

/* ---------- seasons ---------- */
.seasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.season { border-radius: 26px; padding: 18px 18px 22px; text-align: center; position: relative; }
.season img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.season .bf { position: absolute; width: 46%; right: -6%; top: -8%; transform: rotate(10deg); filter: drop-shadow(0 6px 8px rgba(52,64,47,.18)); }
.season h3 { font-family: var(--hand); font-weight: 400; font-size: 30px; margin: 10px 0 2px; }
.season p { margin: 0; font-size: 17px; color: var(--ink-soft); }
.season.spring { background: #EAF0D6; } .season.summer { background: var(--summer-paper); }
.season.autumn { background: var(--autumn-paper); } .season.winter { background: var(--winter-paper); }
.swatches { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(50,62,52,.25); }
@media (max-width: 980px) { .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .seasons { gap: 12px; } .season { padding: 12px 12px 16px; border-radius: 20px; } .season h3 { font-size: 25px; } .season p { font-size: 15px; } }

/* ---------- notebook (app screenshots) ---------- */
.screens { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 3vw, 36px); }
.shot { margin: 0; width: min(270px, 30%); }
.shot .frame { border-radius: 34px; padding: 8px; background: var(--paper-light); box-shadow: 0 24px 50px -28px rgba(52,64,47,.55), 0 6px 16px -10px rgba(52,64,47,.3); }
.shot img { border-radius: 27px; width: 100%; }
.shot.mid { width: min(300px, 34%); }
.shot figcaption { font-family: var(--hand); font-size: 21px; text-align: center; margin-top: 12px; color: var(--ink-soft); }
.shot:nth-child(1) { transform: rotate(-3deg); } .shot:nth-child(3) { transform: rotate(3deg); }
@media (max-width: 700px) {
  .screens { overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; padding: 10px 20px 24px; margin-inline: calc(-1 * var(--gutter)); align-items: flex-start; }
  .shot, .shot.mid { width: 64vw; flex: none; scroll-snap-align: center; transform: none !important; }
}

/* ---------- calm features ---------- */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px) clamp(22px, 4vw, 56px); list-style: none; padding: 0; margin: 0; }
.feat { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: start; }
.feat svg { width: 58px; height: 58px; overflow: visible; }
.feat svg .p { fill: none; stroke: var(--lead); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-family: var(--hand); font-weight: 400; font-size: 27px; margin: 2px 0 4px; line-height: 1.1; }
.feat p { margin: 0; font-size: 18.5px; color: var(--ink-soft); }
@media (max-width: 900px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feats { grid-template-columns: 1fr; } }

/* ---------- final call ---------- */
.cta { text-align: center; padding: clamp(60px, 9vw, 120px) 0 clamp(70px, 9vw, 120px); }
.cta .bf { width: min(260px, 60vw); margin: 0 auto 10px; }
.cta h2 { font-family: var(--hand); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin: 0 0 12px; }
.cta p { margin: 0 auto; max-width: 30em; color: var(--ink-soft); font-size: 21px; }
.cta .stores { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { padding: 34px 0 44px; font-size: 17px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--hand); font-size: 20px; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .fine { margin: 0; }
.site-footer .rule { width: 100%; margin-bottom: 26px; }

/* ---------- document pages (privacy, terms, support) ---------- */
.doc { padding: clamp(20px, 4vw, 48px) 0 clamp(40px, 6vw, 80px); }
.sheet {
  width: min(860px, 100% - 2 * var(--gutter)); margin: 0 auto;
  background: var(--paper-light); border-radius: 22px;
  padding: clamp(26px, 5vw, 64px) clamp(20px, 6vw, 78px) clamp(30px, 5vw, 64px);
  box-shadow: 0 1px 0 rgba(50,62,52,.06), 0 26px 50px -36px rgba(52,64,47,.55);
}
.sheet h1 { font-family: var(--hand); font-weight: 400; font-size: clamp(42px, 6vw, 62px); line-height: 1.05; margin: 0 0 6px; }
.sheet .meta { margin: 0 0 28px; color: var(--ink-soft); font-style: italic; font-size: 18px; }
.sheet h2 { font-family: var(--hand); font-weight: 400; font-size: 31px; line-height: 1.15; margin: 44px 0 10px; }
.sheet h3 { font-size: 21px; margin: 26px 0 6px; font-weight: 600; }
.sheet p, .sheet li { font-size: 19.5px; }
.sheet ul { padding-left: 1.2em; }
.sheet li { margin: 6px 0; }
.sheet li::marker { color: var(--hatch); }
.sheet .summary { background: #EEF3DD; border-radius: 16px; padding: 18px 24px 14px; margin: 18px 0 8px; }
.sheet .summary h2 { margin-top: 0; font-size: 27px; }
.sheet .summary ul { margin: 6px 0 4px; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 17.5px; margin: 14px 0 6px; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid rgba(50,62,52,.16); }
.sheet th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.sheet .toc { columns: 2; column-gap: 34px; font-size: 18px; padding-left: 1.2em; }
@media (max-width: 600px) { .sheet .toc { columns: 1; } .sheet p, .sheet li { font-size: 18.5px; } }
.mail-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 22px 0 8px; }
.mail-card .btn { font-size: 23px; }
.faq details { border-bottom: 1px solid rgba(50,62,52,.16); padding: 10px 0; }
.faq summary { cursor: pointer; font-family: var(--hand); font-size: 24px; line-height: 1.25; list-style: none; padding: 6px 30px 6px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 4px; font-size: 28px; color: var(--on); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p, .faq details ul { margin: 6px 0 12px; }

/* 404 */
.lost { text-align: center; padding: 60px 0 100px; }
.lost h1 { font-family: var(--hand); font-weight: 400; font-size: clamp(44px, 7vw, 76px); margin: 10px 0 8px; }
.lost p { color: var(--ink-soft); }

/* store "coming soon" chips are not links yet */
.btn.static { cursor: default; }
.btn.static:hover { transform: none; }
@media (max-width: 520px) {
  .stores { gap: 12px; margin-top: 24px; }
  .btn { font-size: 19px; padding: 11px 15px 10px; gap: 8px; }
  .btn small { font-size: 14px; }
  .btn .ico { width: 22px; height: 22px; }
}
