/* Sky Studio — site styles. Teal theme; Terranova One NF display, Instrument Sans body. */

@font-face {
  font-family: "typograph_light";
  src: url("../fonts/typograph_light.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: "TerranovaOneNF";
  src: url("../fonts/TerranovaOneNF.woff2") format("woff2"),
       url("../fonts/TerranovaOneNF.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
/*  font-display: swap;*/
}


:root {
  --ink: #04100F;
  --panel: #0A1B19;
  --line: rgba(143, 232, 220, 0.14);
  --teal: #1FBFB0;
  --teal-light: #8FE8DC;
  --teal-dim: rgba(31, 191, 176, 0.18);
  --sand: #EAE6DA;
  --sand-dim: rgba(234, 230, 218, 0.62);
  --display: "typograph_light", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --radius: 10px;
}



* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
p.lede { font-size: 1.2rem; color: var(--sand); }
.muted { color: var(--sand-dim); }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }

/* Nav ------------------------------------------------------------------ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand {
  font-family: "TerranovaOneNF"; font-size: 1.05rem; letter-spacing: 0.14em;
  color: var(--teal); text-decoration: none;
}
.brand img { width: 33px; height: 33px; border-radius: 2px; }
.brand:hover { color: var(--teal-light); }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a:not(.brand) { color: var(--sand-dim); text-decoration: none; font-size: 0.95rem; }
.nav a:not(.brand):hover { color: var(--sand); }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn-primary { background: var(--teal); color: var(--ink); box-shadow: 0 0 0 0 rgba(31,191,176,0); }
.btn-primary:hover { background: var(--teal-light); color: var(--ink); box-shadow: 0 0 28px rgba(31,191,176,0.45); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--sand); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); color: #fff; }
.btn svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-primary:hover { transform: none; } }

/* Hero: one photo, many skies ------------------------------------------ */
.hero { padding: 8px 0 64px; border-top: 0; }
.switcher {
  position: relative; margin: 0; width: 100%; aspect-ratio: 2 / 1; max-height: 620px;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0b1513;
}
.frames { position: absolute; inset: 0; }
.frame {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 900ms ease;
}
.frame.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .frame { transition: none; } }

.badge {
  position: absolute; top: 14px; left: 16px; margin: 0; font-size: 0.82rem; font-weight: 500;
  color: var(--teal-light); border: 1px solid var(--teal); border-radius: 999px; padding: 5px 11px;
  background: rgba(4,16,15,0.6);
}

.thumbs {
  position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; padding: 8px;
  background: rgba(4,16,15,0.72); border: 1px solid var(--line); border-radius: 12px;
  backdrop-filter: blur(8px); max-width: calc(100% - 32px); overflow-x: auto;
}
.thumb {
  flex: none; width: 88px; height: 44px; border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; padding: 0; background-size: cover; background-position: center;
  display: grid; place-items: center; color: #fff; font: 600 0.72rem var(--body);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8); transition: border-color 120ms ease, transform 120ms ease;
}
.thumb[aria-selected="true"] { border-color: var(--teal); box-shadow: 0 0 14px rgba(31,191,176,0.55); }
.thumb:hover { border-color: var(--teal-light); transform: translateY(-1px); }
.thumb span { padding: 2px 7px; background: rgba(4,16,15,0.6); border-radius: 999px; }

.hero-copy { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-top: 40px; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-copy .fine { font-size: 0.9rem; color: var(--sand-dim); margin-top: 12px; }
@media (max-width: 800px) {
  .hero-copy { grid-template-columns: 1fr; gap: 24px; }
  .thumbs { left: 8px; bottom: 8px; padding: 6px; gap: 6px; }
  .thumb { width: 64px; height: 32px; font-size: 0.62rem; }
}

/* Steps (a true sequence) --------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 8px; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--teal); }
.step .n { font-family: var(--display); color: var(--teal); font-size: 1.1rem; margin-bottom: 10px; }
.step p { margin: 0; color: var(--sand-dim); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Before / after slider ------------------------------------------------- */
.compare {
  position: relative; margin: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--line);
  background: #0b1513; aspect-ratio: var(--ratio, 3 / 2); user-select: none; touch-action: pan-y;
  cursor: ew-resize;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare .divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px;
  background: var(--teal-light); box-shadow: 0 0 12px rgba(31,191,176,0.7); pointer-events: none;
}
.compare .knob {
  position: absolute; top: 50%; left: var(--pos, 50%); width: 40px; height: 40px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--ink); border: 2px solid var(--teal); display: grid; place-items: center;
  color: var(--teal-light); box-shadow: 0 0 18px rgba(31,191,176,0.55); pointer-events: none;
}
.compare .knob svg { width: 18px; height: 18px; }
.compare .tag {
  position: absolute; top: 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 9px; border-radius: 999px; background: rgba(4,16,15,0.7); color: var(--sand); pointer-events: none;
}
.compare .tag.before-tag { left: 12px; }
.compare .tag.after-tag { right: 12px; color: var(--teal-light); border: 1px solid var(--teal); }
.compare input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.compare input[type=range]:focus-visible + .divider { box-shadow: 0 0 0 3px var(--teal); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.gallery figure { margin: 0; }
.gallery figcaption, .pair figcaption { margin-top: 10px; color: var(--sand-dim); font-size: 0.95rem; }
.gallery figcaption strong, .pair figcaption strong { color: var(--sand); font-weight: 600; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.pair { margin: 0; }
.prompt {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85rem; color: var(--teal-light);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 10px;
}
.prompt::before { content: "› "; color: var(--teal); }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; } .pairs { grid-template-columns: 1fr; } }

/* Feature list ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.facts li { padding-left: 22px; position: relative; color: var(--sand-dim); }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 2px; background: var(--teal); }
.facts strong { color: var(--sand); font-weight: 600; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Pricing --------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 12px; max-width: 820px; }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 14px; background: var(--panel);
}
.plan.featured { border-color: var(--teal); box-shadow: 0 0 40px rgba(31,191,176,0.18) inset; }
.plan h3 { margin: 0; }
.price { font-family: var(--display); font-size: 2rem; line-height: 1; }
.price small { font-family: var(--body); font-size: 0.95rem; color: var(--sand-dim); margin-left: 6px; }
.plan ul { list-style: none; margin: 0; padding: 0; color: var(--sand-dim); display: grid; gap: 6px; font-size: 0.95rem; }
.plan .btn { margin-top: auto; justify-content: center; }
.costs { margin-top: 28px; color: var(--sand-dim); font-size: 0.95rem; }
.costs table { border-collapse: collapse; margin-top: 8px; }
.costs td { padding: 6px 28px 6px 0; border-bottom: 1px solid var(--line); }
.costs td:first-child { color: var(--sand); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* FAQ ------------------------------------------------------------------ */
.faq details { border-top: 1px solid var(--line); padding: 16px 0; max-width: 760px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--sand-dim); }

/* Download ---------------------------------------------------------------- */
.download { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.app-icon {
  width: 160px; height: 160px; border-radius: 36px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(31,191,176,0.25);
}
@media (max-width: 700px) { .download { grid-template-columns: 1fr; gap: 20px; } .app-icon { width: 112px; height: 112px; border-radius: 26px; } }

/* Footer ---------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--sand-dim); font-size: 0.92rem; }
footer .row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
footer ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
footer a { color: var(--sand-dim); text-decoration: none; }
footer a:hover { color: var(--sand); }

/* Legal pages ----------------------------------------------------------- */
.legal { max-width: 72ch; padding: 32px 0 80px; }
.legal h1 { margin-bottom: 0.2em; }
.legal .updated { color: var(--sand-dim); margin-bottom: 40px; }
.legal h2 { font-size: 1.25rem; margin-top: 40px; }
.legal p, .legal li { color: var(--sand-dim); }
.legal strong { color: var(--sand); }
.legal ul { padding-left: 20px; }

/* Checkout -------------------------------------------------------------- */
.checkout { padding: 40px 0 80px; border-top: 0; }
.checkout .plans { margin-top: 32px; }
.notice {
  border: 1px solid var(--teal); border-radius: var(--radius); padding: 18px 20px; background: var(--teal-dim);
  max-width: 640px; color: var(--sand);
}
.notice.error { border-color: #e26a4a; background: rgba(226,106,74,0.12); }
.device { color: var(--sand-dim); font-size: 0.92rem; margin-top: 10px; }
.device code { color: var(--teal-light); font-size: 0.85em; }
[hidden] { display: none !important; }