/* Tripodia — tripodia.app
   Calm, warm paper background; soft sky gradients; one ink colour. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: "Inter";
  src: url("/assets/fonts/inter-latin-ext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f4efeb;
  --surface: #fbf8f5;
  --surface-2: #efe8e2;
  --ink: #171615;
  --ink-2: #3a3734;
  --muted: #8f8a85;
  --faint: #b9b3ad;
  --line: #e4ddd6;
  --white: #ffffff;

  --sky-top: #a8adbf;
  --sky-mid: #bdb3bb;
  --sky-low: #e9b8a8;
  --cloud: #f3b3a0;

  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-card: 0 1px 2px rgba(23, 22, 21, 0.04), 0 18px 40px -22px rgba(23, 22, 21, 0.28);
  --shadow-photo: 0 2px 4px rgba(23, 22, 21, 0.08), 0 22px 40px -18px rgba(23, 22, 21, 0.4);

  --wrap: 1120px;
  --gutter: 24px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 999px; z-index: 10;
}
.skip:focus { left: 16px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */

.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 500; font-size: 18px; letter-spacing: -0.02em;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .lang {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
  font-size: 13px; letter-spacing: .02em; color: var(--ink-2);
}

@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
  .nav { gap: 14px; }
}

/* ---------- Typography ---------- */

.display {
  font-weight: 450;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0;
}
.title {
  font-weight: 450;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.038em;
  margin: 0;
}
.title .soft, .display .soft { color: var(--faint); }

.eyebrow {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 18px;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin: 20px 0 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--ink); color: var(--white);
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; border: 0;
}
.btn-light { background: var(--white); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn svg { width: 18px; height: 18px; }

.pill {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px;
  background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500;
}

/* ---------- Hero ---------- */

.hero { padding-top: 8px; }

.sky {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl);
  min-height: min(760px, 88vh);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-low) 100%);
  color: var(--white);
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 32px;
  padding: clamp(28px, 5vw, 72px);
}
/* Soft clouds: blurred radial blobs, no image needed. */
.sky::before, .sky::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; filter: blur(38px);
}
.sky::before {
  width: 85%; height: 70%; left: -18%; bottom: -26%;
  background:
    radial-gradient(closest-side at 30% 60%, rgba(247, 176, 155, .95), transparent),
    radial-gradient(closest-side at 62% 72%, rgba(244, 168, 150, .85), transparent),
    radial-gradient(closest-side at 50% 30%, rgba(252, 205, 186, .7), transparent);
}
.sky::after {
  width: 60%; height: 45%; right: -14%; top: -10%;
  background:
    radial-gradient(closest-side at 40% 50%, rgba(214, 205, 214, .8), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(236, 196, 190, .55), transparent);
}

.hero-copy .display { color: var(--white); font-size: clamp(56px, 9vw, 112px); }
.hero-copy p { margin: 18px 0 0; max-width: 24em; font-size: clamp(17px, 1.7vw, 21px); color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.store-note { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.75); }

/* Phone mock built from HTML, echoing the app's home screen. */
.phone {
  justify-self: center;
  width: min(330px, 100%); aspect-ratio: 9 / 19;
  background: var(--bg); color: var(--ink);
  border-radius: 46px; padding: 18px 16px 12px;
  box-shadow: 0 40px 80px -30px rgba(40, 30, 40, .55), 0 0 0 8px rgba(255,255,255,.28);
  display: flex; flex-direction: column;
}
.phone-status { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; padding: 0 12px; }
.phone-status i { display: inline-block; width: 22px; height: 9px; border-radius: 3px; background: var(--ink); }
.phone h3 { font-weight: 450; font-size: 27px; line-height: 1.08; letter-spacing: -0.035em; margin: 30px 8px 18px; }
.phone h3 span { color: var(--faint); display: block; }

.story-card {
  position: relative; flex: 1; border-radius: 26px; overflow: hidden;
  background:
    linear-gradient(180deg, transparent 52%, rgba(10,10,12,.82) 100%),
    radial-gradient(120% 60% at 50% 100%, #3b3a3f 0%, transparent 60%),
    linear-gradient(180deg, #c9c3d3 0%, #e7c3bc 46%, #9a96a3 70%, #4b4a51 100%);
  color: var(--white); padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
}
/* Simple dome silhouette standing in for a landmark photo. */
.story-card .dome {
  position: absolute; left: 50%; bottom: 26%; width: 64%; transform: translateX(-50%);
  height: 34%;
  background:
    radial-gradient(60% 100% at 50% 100%, #2f2d33 98%, transparent 100%) 50% 0 / 58% 70% no-repeat,
    linear-gradient(#2f2d33, #2f2d33) 50% 100% / 100% 34% no-repeat,
    linear-gradient(#2f2d33, #2f2d33) 6% 100% / 4% 92% no-repeat,
    linear-gradient(#2f2d33, #2f2d33) 94% 100% / 4% 92% no-repeat;
  opacity: .9;
}
.story-card .top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.story-card .where { text-align: right; font-size: 14px; line-height: 1.25; }
.story-card .where small { display: block; color: rgba(255,255,255,.75); font-size: 12px; }
.badge-audio {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink);
  display: grid; place-items: center;
}
.badge-audio svg { width: 16px; height: 16px; }
.story-card .bottom { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.story-card .bottom b { font-weight: 500; font-size: 16px; display: block; }
.story-card .bottom small { color: rgba(255,255,255,.75); font-size: 12px; }

.phone-tabs { display: flex; justify-content: space-around; padding: 14px 0 4px; font-size: 11px; color: var(--faint); }
.phone-tabs span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.phone-tabs svg { width: 20px; height: 20px; }
.phone-tabs .on { color: var(--ink); }

@media (max-width: 860px) {
  .sky { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; }
  .phone { width: min(300px, 100%); margin-top: 8px; }
}

/* ---------- Sections ---------- */

section { padding: clamp(72px, 10vw, 128px) 0 0; }

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px;
}
.feature {
  background: var(--surface); border-radius: var(--radius-lg); padding: 30px 28px 32px;
  box-shadow: var(--shadow-card);
}
.feature .ico {
  width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2);
  display: grid; place-items: center; margin-bottom: 26px;
}
.feature .ico svg { width: 22px; height: 22px; stroke: var(--ink); }
.feature h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Dark stat card, like "Trips completed this year". */
.stat {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  min-height: 380px; padding: clamp(28px, 4vw, 48px);
  color: var(--white);
  background:
    radial-gradient(70% 90% at 85% 100%, rgba(232, 160, 120, .55), transparent 70%),
    radial-gradient(60% 70% at 10% 0%, rgba(120, 130, 170, .5), transparent 70%),
    linear-gradient(160deg, #262a3a 0%, #1b1d27 55%, #2e2522 100%);
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end;
}
.stat .label { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; letter-spacing: -0.02em; max-width: 14em; align-self: start; }
.stat .num { font-size: clamp(96px, 16vw, 190px); line-height: .85; font-weight: 300; letter-spacing: -0.06em; margin-top: 24px; }
.stat .langs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-self: end; }
.stat .langs span {
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 6px 13px; font-size: 14px;
  color: rgba(255,255,255,.88); background: rgba(255,255,255,.04);
}
@media (max-width: 760px) {
  .stat { grid-template-columns: 1fr; }
  .stat .langs { justify-content: flex-start; }
}

/* Polaroid strip, like the memo screen. */
.place-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.place-row + .place-row { margin-top: 96px; }
.place-row h3 { font-weight: 450; font-size: clamp(34px, 4.4vw, 50px); letter-spacing: -0.04em; margin: 0 0 14px; line-height: 1.05; }
.place-row p { color: var(--muted); margin: 0; max-width: 28em; }
.place-row .quote { font-size: 15px; margin-top: 18px; padding-left: 16px; border-left: 2px solid var(--line); color: var(--ink-2); }

.polaroids { position: relative; height: 340px; }
.polaroid {
  position: absolute; width: 44%; aspect-ratio: 4 / 5; margin: 0;
  background: var(--white); padding: 8px 8px 34px; border-radius: 6px;
  box-shadow: var(--shadow-photo);
}
.polaroid .shot { width: 100%; height: 100%; border-radius: 3px; }
.polaroid figcaption { position: absolute; left: 12px; bottom: 9px; font-size: 13px; color: var(--ink-2); }
.polaroid:nth-child(1) { left: 0; top: 18px; transform: rotate(-4deg); }
.polaroid:nth-child(2) { left: 28%; top: 0; transform: rotate(3deg); z-index: 2; }
.polaroid:nth-child(3) { right: 0; top: 40px; transform: rotate(-2.5deg); z-index: 3; }

/* Painted "photos": gradients evoking each place. */
.shot.istanbul { background: linear-gradient(180deg, #e9c4a8 0%, #d89b86 38%, #6a5d6b 39%, #59506a 70%, #2d3348 100%); }
.shot.coast { background: linear-gradient(180deg, #bcd8e6 0%, #8fc3d6 40%, #2f9aa8 41%, #2f8d8a 62%, #5c8b4c 63%, #3e6a3a 100%); }
.shot.bridge { background: linear-gradient(180deg, #a9c5e3 0%, #cfdff0 50%, #7aa6c9 51%, #3f78a3 100%); }
.shot.castle { background: linear-gradient(180deg, #d7dbe6 0%, #b9c3d6 44%, #6d7c6a 45%, #3f4f3c 100%); }
.shot.stones { background: linear-gradient(180deg, #e6d2c4 0%, #c8b0a7 52%, #8a8b6a 53%, #5d6646 100%); }
.shot.night { background: linear-gradient(180deg, #2b3150 0%, #4a4868 50%, #b57a5c 51%, #6c4a3a 100%); }

@media (max-width: 860px) {
  .place-row { grid-template-columns: 1fr; gap: 28px; }
  .place-row .polaroids { order: 2; }
  .polaroids { height: 300px; max-width: 440px; }
}

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.plan {
  background: var(--surface); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.plan.dark { background: var(--ink); color: var(--white); }
.plan h3 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.plan .tag { color: var(--muted); font-size: 15px; margin: 8px 0 22px; }
.plan.dark .tag { color: rgba(255,255,255,.62); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; margin-top: 8px; margin-left: 4px;
}
.plans-note { margin-top: 22px; color: var(--muted); font-size: 14px; max-width: 52em; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Closing call to action */
.closing {
  margin-top: clamp(72px, 10vw, 128px);
  border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 80px) clamp(28px, 5vw, 64px);
  background: linear-gradient(180deg, #c3bccb 0%, #e9c2b6 100%);
  text-align: center;
}
.closing .title { max-width: 14em; margin: 0 auto; }
.closing .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { padding: 72px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; border-top: 1px solid var(--line); padding-top: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Document pages (privacy, terms, support) ---------- */

.doc { padding: 40px 0 0; }
.doc .wrap { max-width: 760px; }
.doc header { padding: 32px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-top: 18px; }

.toc {
  background: var(--surface); border-radius: var(--radius-md); padding: 22px 26px; margin: 0 0 48px;
  box-shadow: var(--shadow-card);
}
.toc p { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.prose { font-size: 16.5px; color: var(--ink-2); }
.prose h2 {
  font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
  margin: 56px 0 14px; scroll-margin-top: 24px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 30px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { text-decoration-color: var(--faint); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }

.summary {
  background: var(--surface); border-radius: var(--radius-md); padding: 24px 26px; margin-bottom: 40px;
  box-shadow: var(--shadow-card);
}
.summary h2 { margin-top: 0 !important; font-size: 18px; }
.summary ul { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 18px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-weight: 600; color: var(--ink); background: var(--surface-2); }

.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li {
  counter-increment: step; position: relative; background: var(--surface); border-radius: var(--radius-md);
  padding: 18px 20px 18px 62px; margin: 0 !important; box-shadow: var(--shadow-card);
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--white);
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
}

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-top: 10px; }

.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding: 26px 28px; margin: 8px 0 32px;
}
.contact-card p { margin: 0; color: rgba(255,255,255,.7); }
.contact-card strong { color: var(--white); display: block; font-size: 18px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
