/* Fonn — tryfonn.com
   Layout concept: the instrument on the workbench. A dark, warm ground; brass for structure;
   the plugin's mint "lit" colour reserved for live readouts only. Single deliberate dark look. */

@font-face { font-family: "Cinzel"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/cinzel-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/cinzel-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #16130f;
  --ground-2: #1d1914;
  --ground-3: #26211a;
  --brass: #a37d50;
  --brass-hi: #e2c38e;
  --brass-lo: #6f5434;
  --ink: #ede6da;
  --ink-dim: #a89e8f;
  --ink-faint: #7a7064;
  --mint: #7ef2b0;
  --amber: #f2a54a;
  --rule: rgba(163, 125, 80, 0.28);

  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --body: "EB Garamond", "Garamond", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --step-0: clamp(1.15rem, 1.1rem + 0.25vw, 1.3rem);
  --step-1: clamp(1.4rem, 1.3rem + 0.5vw, 1.7rem);
  --step-2: clamp(1.8rem, 1.55rem + 1.1vw, 2.5rem);
  --step-3: clamp(2.3rem, 1.8rem + 2.4vw, 3.8rem);
  --step-5: clamp(3.6rem, 2.4rem + 6vw, 7.5rem);

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --measure: 34rem;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--ground);
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--brass-hi); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 400; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ---------- small type roles ---------- */
.eyebrow {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
}
.readout {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--mint);
  text-shadow: 0 0 12px rgba(126, 242, 176, 0.45);
}
.dot { display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); vertical-align: 0.08em; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(22, 19, 15, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-head.scrolled { border-bottom-color: var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.8rem; }
.brand {
  font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.32em; color: var(--brass-hi);
  text-decoration: none; margin-right: auto; padding-left: 0.32em;
}
.nav { display: flex; gap: 1.6rem; }
.nav a { color: var(--ink-dim); text-decoration: none; font-size: 1.02rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--display); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: #1b150d;
  background: linear-gradient(180deg, #ecd2a1 0%, #c79c62 48%, #a37d50 100%);
  border: 1px solid #f0d9ad; border-radius: 999px;
  padding: 0.95em 1.9em 0.9em;
  box-shadow: 0 1px 0 rgba(255, 240, 210, 0.5) inset, 0 10px 30px -10px rgba(214, 162, 92, 0.6);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  white-space: nowrap;
}
.btn:hover { color: #1b150d; transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255, 240, 210, 0.5) inset, 0 16px 40px -12px rgba(214, 162, 92, 0.75); }
.btn-sm { font-size: 0.74rem; padding: 0.75em 1.3em 0.7em; }
.btn-ghost { background: transparent; color: var(--brass-hi); border-color: var(--rule); box-shadow: none; }
.btn-ghost:hover { color: var(--ink); border-color: var(--brass); box-shadow: none; }
.btn-ghost svg { width: 0.9em; height: 0.9em; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3.5rem, 8vw, 6.5rem); text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto; height: 120%; z-index: -2;
  background: radial-gradient(ellipse 50% 45% at 50% 42%, rgba(120, 88, 48, 0.42), transparent 70%);
}
.dial-stage { position: relative; width: min(100%, 38rem); margin-inline: auto; aspect-ratio: 1; display: grid; place-items: center; }
.dial { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.dial .ring { fill: none; stroke: var(--brass); stroke-width: 1.4; }
.dial .ring-inner { fill: none; stroke: var(--brass); stroke-opacity: 0.35; stroke-width: 0.8; }
.dial .ticks line { stroke: var(--brass); }
.dial .ticks text { fill: var(--brass); font-family: var(--display); font-size: 11px; letter-spacing: 0.08em; opacity: 0.75; }
.dial .marker { fill: var(--brass-hi); filter: drop-shadow(0 0 6px rgba(226, 195, 142, 0.8)); }

.ring { stroke-dasharray: 1900; stroke-dashoffset: 0; animation: draw 1.6s cubic-bezier(.65,0,.35,1) both; }
.ticks { transform-box: fill-box; transform-origin: center; animation: fadein 1.2s 0.4s both, turn 240s linear 1.6s infinite; }
.marker-arm { transform-box: fill-box; transform-origin: center; animation: bearing 1.7s 0.2s cubic-bezier(.34,1.45,.64,1) both; }
@keyframes draw { from { stroke-dashoffset: 1900; } to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes bearing { from { transform: rotate(-250deg); } to { transform: rotate(0deg); } }

.dial-core { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.wordmark {
  font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 1.6rem + 6.4vw, 6.2rem);
  letter-spacing: 0.22em; padding-left: 0.22em; line-height: 1; margin: 0;
  background: linear-gradient(180deg, #f6dea8 8%, #cda062 42%, #96703f 58%, #c4965a 76%, #70502c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 18px rgba(214, 162, 92, 0.3));
  position: relative;
}
.wordmark .shine {
  position: absolute; inset: 0; padding-left: 0.22em; color: transparent; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 246, 222, 0.9) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0;
  -webkit-background-clip: text; background-clip: text;
  animation: shine 1.4s 1.5s ease-in-out both;
}
@keyframes shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.rule { width: 7rem; height: 1px; background: var(--brass); border: 0; margin: 0; }
.dial-core .readout { font-size: clamp(0.6rem, 0.5rem + 0.4vw, 0.8rem); }
.hero-copy { display: grid; justify-items: center; gap: 1.1rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.hero h1 { font-family: var(--body); font-size: var(--step-2); line-height: 1.15; color: var(--ink); max-width: 20em; }
.hero h1 em { font-style: italic; color: var(--brass-hi); }
.hero .lede { font-size: var(--step-1); color: var(--ink-dim); max-width: 28em; line-height: 1.4; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 0.4rem; }
.hero .fine { font-size: 0.98rem; color: var(--ink-faint); letter-spacing: 0.02em; }
@media (max-width: 480px) { .hero .actions .btn { width: 100%; } }

/* ---------- sections ---------- */
section { position: relative; }
.band { padding-block: clamp(4rem, 9vw, 7.5rem); }
.band + .band { border-top: 1px solid var(--rule); }
.band-raised { background: var(--ground-2); }
.section-head { display: grid; gap: 0.9rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 40rem; }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head h2 { font-size: var(--step-3); line-height: 1.08; }
.section-head p { color: var(--ink-dim); max-width: var(--measure); }

/* problem / plugin */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split > * { min-width: 0; }
.plugin-figure { position: relative; margin: 0; justify-self: center; width: min(100%, 26rem); }
.plugin-figure::before {
  content: ""; position: absolute; inset: 8% -12%; z-index: -1;
  background: radial-gradient(closest-side, rgba(126, 242, 176, 0.14), rgba(163, 125, 80, 0.14) 55%, transparent);
  filter: blur(20px);
}
.plugin-figure img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(226, 195, 142, 0.15); }
.plugin-figure figcaption { margin-top: 1rem; text-align: center; }
.prose { display: grid; gap: 1.2rem; max-width: var(--measure); }
.prose h2 { font-size: var(--step-3); line-height: 1.08; }
.prose p { color: var(--ink-dim); }
.prose p.strong { color: var(--ink); font-size: var(--step-1); line-height: 1.35; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } .plugin-figure { width: min(100%, 22rem); } }

/* how it works — a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); counter-reset: step; }
.steps li { position: relative; display: grid; gap: 0.7rem; align-content: start; padding-top: 1.6rem; border-top: 1px solid var(--rule); counter-increment: step; }
.steps li::before {
  content: "Step " counter(step);
  font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass);
}
.steps li::after {
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--brass-hi);
  box-shadow: 0 0 8px rgba(226, 195, 142, 0.8);
}
.steps h3 { font-size: var(--step-1); line-height: 1.2; }
.steps p { color: var(--ink-dim); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* demo */
.screen {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(226, 195, 142, 0.22);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(29, 25, 20, 1), 0 0 0 7px var(--rule);
  background: #000; aspect-ratio: 16 / 9; max-width: 100%;
}
.screen video { width: 100%; height: 100%; object-fit: cover; }
.screen-note { margin-top: 1.2rem; text-align: center; color: var(--ink-faint); font-size: 1rem; }

/* harmony */
.roll-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.roll-wrap > * { min-width: 0; }
.roll {
  border-radius: var(--radius); background: #0d1513;
  border: 1px solid rgba(226, 195, 142, 0.2);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  padding: 1rem;
}
.roll svg { width: 100%; height: auto; }
.roll .grid line { stroke: rgba(126, 242, 176, 0.08); }
.roll .grid line.bar { stroke: rgba(126, 242, 176, 0.18); }
.roll .keys text { fill: rgba(237, 230, 218, 0.4); font-family: var(--mono); font-size: 9px; }
.roll .mel rect { fill: var(--mint); filter: drop-shadow(0 0 5px rgba(126, 242, 176, 0.7)); }
.roll .har rect { fill: var(--amber); filter: drop-shadow(0 0 5px rgba(242, 165, 74, 0.7)); }
.roll-legend { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 0.9rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--ink-dim); }
.roll-legend span::before { content: ""; display: inline-block; width: 1.4em; height: 0.5em; border-radius: 3px; margin-right: 0.6em; vertical-align: 0.1em; }
.roll-legend .l-mel::before { background: var(--mint); }
.roll-legend .l-har::before { background: var(--amber); }
.har .n { animation: rise 0.5s both; }
@keyframes rise { from { opacity: 0.15; } to { opacity: 1; } }
@media (max-width: 820px) { .roll-wrap { grid-template-columns: minmax(0, 1fr); } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.feature { padding: clamp(1.4rem, 3vw, 2.2rem); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.feature h3 { font-family: var(--display); font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-hi); line-height: 1.4; }
.feature p { color: var(--ink-dim); }
.feature .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.chip { font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.35em 0.8em; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-dim); }
.chip.on { background: var(--mint); color: #0e2a1c; border-color: var(--mint); box-shadow: 0 0 12px rgba(126, 242, 176, 0.45); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* field notes */
.notes { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.notes > * { min-width: 0; }
.notes h2 { font-size: var(--step-2); line-height: 1.1; margin-bottom: 1.6rem; }
.tips { display: grid; gap: 1.4rem; }
.tip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: baseline; }
.tip .readout { white-space: nowrap; }
.tip h3 { font-size: var(--step-1); line-height: 1.25; margin-bottom: 0.3rem; }
.tip p { color: var(--ink-dim); }
.isnt { border-left: 1px solid var(--brass); padding-left: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1rem; align-content: start; }
.isnt p { color: var(--ink-dim); }
.isnt p.strong { color: var(--ink); font-size: var(--step-1); line-height: 1.35; font-style: italic; }
@media (max-width: 820px) { .notes { grid-template-columns: minmax(0, 1fr); } }

/* pricing */
.price-card {
  position: relative; max-width: 34rem; margin-inline: auto; text-align: center;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1.4rem, 5vw, 3rem);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(38, 33, 26, 0.95), rgba(29, 25, 20, 0.95));
  border: 1px solid rgba(226, 195, 142, 0.3);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 240, 210, 0.08);
  display: grid; gap: 1.2rem; justify-items: center;
}
.price { font-family: var(--display); font-size: clamp(3.6rem, 3rem + 3vw, 5rem); line-height: 1; color: var(--brass-hi); }
.price small { font-family: var(--body); font-size: 1.2rem; color: var(--ink-dim); letter-spacing: 0.02em; margin-left: 0.3em; }
.ticklist { list-style: none; padding: 0; margin: 0.4rem 0; display: grid; gap: 0.55rem; text-align: left; }
.ticklist li { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: 0.7rem; align-items: baseline; color: var(--ink); }
.ticklist li::before { content: ""; width: 0.55rem; height: 0.55rem; transform: rotate(45deg) translateY(-0.1rem); background: var(--brass); justify-self: center; }
.price-card .fine { color: var(--ink-faint); font-size: 0.95rem; max-width: 26em; }

/* faq */
.faq { max-width: 46rem; margin-inline: auto; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0.25rem; font-size: var(--step-1); line-height: 1.3; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.7rem; height: 0.7rem; border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass);
  transform: rotate(45deg) translateY(-25%); transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-10%); }
.faq summary:hover { color: var(--brass-hi); }
.faq .answer { padding: 0 0.25rem 1.4rem; color: var(--ink-dim); max-width: 40rem; }

/* closing */
.closing { text-align: center; display: grid; justify-items: center; gap: 1.4rem; }
.closing h2 { font-size: var(--step-3); line-height: 1.08; }
.closing p { color: var(--ink-dim); }

/* footer */
.site-foot { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem 2rem; }
.site-foot .made { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-dim); }
.site-foot .made b { color: var(--brass-hi); font-weight: 400; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 1.02rem; }
.site-foot nav a { color: var(--ink-dim); text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); }
.site-foot .copy { width: 100%; color: var(--ink-faint); font-size: 0.92rem; }

/* legal documents */
.doc { max-width: 44rem; margin-inline: auto; padding-block: clamp(3rem, 7vw, 5rem); }
.doc .letterhead { display: grid; gap: 0.3rem; padding-bottom: 1.6rem; margin-bottom: 2.4rem; border-bottom: 1px solid var(--rule); }
.doc .letterhead .org { font-family: var(--display); letter-spacing: 0.32em; color: var(--brass-hi); font-size: 1.1rem; }
.doc .letterhead p { color: var(--ink-faint); font-size: 0.98rem; }
.doc h1 { font-family: var(--display); font-size: var(--step-3); line-height: 1.1; }
.doc .sub { font-style: italic; color: var(--ink-dim); margin-top: 0.5rem; }
.doc .effective { margin-top: 1rem; color: var(--ink-faint); font-size: 1rem; }
.doc .intro { margin-block: 2rem; color: var(--ink); }
.doc h2 { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-hi); margin: 2.4rem 0 0.9rem; display: flex; gap: 0.8rem; }
.doc h2 span { color: var(--brass); }
.doc .clause { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.4rem; margin-bottom: 0.8rem; color: var(--ink-dim); }
.doc .clause > span:first-child { font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.doc ul { margin: 0.5rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.doc .back { display: inline-block; margin-top: 3rem; }

/* 404 */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.lost > div { display: grid; gap: 1.2rem; justify-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 440px) { .ro-notes { display: none; } }
.band, .hero, main { overflow-x: clip; }
.tip { grid-template-columns: 6.2rem minmax(0, 1fr); }
@media (max-width: 480px) { .tip { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; } }

.btn-soon { cursor: default; background: transparent; color: var(--brass-hi); border-color: var(--brass); box-shadow: none; }
.btn-soon:hover { transform: none; filter: none; color: var(--brass-hi); box-shadow: none; }
