/*
Theme Name: NomadPOS Green
Theme URI: https://nomadpos.com/
Author: Black Label Solutions
Description: Custom theme for the NomadPOS Green website (FCS-2259). Built from the Option A mockup. Home page text and photos are edited in Appearance > Customize; other pages use the normal page editor.
Version: 0.2.0
Requires at least: 5.6
Requires PHP: 7.4
Text Domain: nomadpos-green
*/

:root {
  --green: #56ad47;
  --green-dark: #3f8a35;
  --green-soft: #eaf5e7;
  --green-pale: #f4faf2;
  --ink: #2f3330;
  --text: #636863;
  --black: #0f1110;
  --navy: #13233a;
  --navy-2: #1d3757;
  --band-text: #d3dbe5;
  --line: #e3e7e2;
  --paper: #ffffff;
  --mist: #f3f5f2;
  --tbc-bg: #fff4cc;
  --tbc-fg: #6b5200;
  --font: "Roboto", Arial, Helvetica, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--text); font-family: var(--font); font-weight: 300; font-size: 16px; line-height: 1.65; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.tbc { background: var(--tbc-bg); color: var(--tbc-fg); font-weight: 500; font-size: 0.82em; padding: 1px 7px; border-radius: 4px; white-space: nowrap; }
svg.art { display: block; width: 100%; height: auto; }


/* Site header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b { color: var(--ink); font-weight: 700; font-size: 22px; letter-spacing: -0.2px; }
.logo-word i { font-style: normal; color: var(--green); font-size: 13px; font-weight: 500; border-top: 2px solid var(--green); padding-top: 2px; margin-top: 3px; text-align: right; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 400; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a.on { color: var(--green); font-weight: 500; }

/* Buttons */
.play { display: inline-flex; align-items: center; gap: 10px; background: var(--black); color: var(--paper); border: 1px solid #5b5b5b; border-radius: 9px; padding: 7px 16px 7px 12px; text-align: left; }
.play svg { flex: none; }
.play span { display: flex; flex-direction: column; line-height: 1.1; }
.play small { font-size: 10px; letter-spacing: 0.6px; text-transform: uppercase; font-weight: 400; }
.play b { font-size: 18px; font-weight: 500; }
.btn-line { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--paper); border: 2px solid rgba(255,255,255,0.85); border-radius: 9px; padding: 10px 18px; font-size: 15px; font-weight: 500; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 12% 18%, rgba(86,173,71,0.35) 0, transparent 46%), radial-gradient(circle at 40% 95%, rgba(31,90,53,0.55) 0, transparent 50%), linear-gradient(135deg, #0b0d0c 0%, #10261a 55%, #0b0d0c 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--paper); clip-path: polygon(56% 0, 100% 0, 100% 100%, 48% 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #7ccc6b 0%, #56ad47 45%, #2f7a29 100%); clip-path: polygon(57.4% 0, 62% 0, 54% 100%, 49.4% 100%); }
.hero-panel { position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, #ffffff 0, rgba(255,255,255,0) 45%), linear-gradient(160deg, #f6fbf4 0%, #e3f2de 55%, #cfe8c9 100%); clip-path: polygon(62% 0, 100% 0, 100% 100%, 54% 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; gap: 28px; padding-block: 56px 48px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; max-width: 470px; position: relative; z-index: 1; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.hero-copy .play, .hero-copy .btn-line { text-shadow: none; }
.eyebrow { color: var(--green); font-weight: 500; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; }
.hero h1 { color: var(--paper); font-size: clamp(32px, 4.3vw, 50px); font-weight: 700; letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.lead { color: #e2e5e2; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-art { position: relative; aspect-ratio: 4 / 3; max-width: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.slide.on { opacity: 1; }
.slide-label { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); white-space: nowrap; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(255,255,255,0.78); border: 1px solid rgba(255,255,255,0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(16,38,26,0.20), 0 2px 6px rgba(16,38,26,0.08); color: var(--ink); line-height: 1.2; white-space: nowrap; }
.chip b { display: block; font-weight: 500; font-size: 13px; }
.chip small { display: block; font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.chip-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--paper); background: linear-gradient(160deg, #6cc35b, #3f8a35); flex: none; }
.chip-ico svg { width: 18px; height: 18px; }
.chip-pay { top: 6%; left: -2%; }
.chip-mail { bottom: 12%; right: -1%; }
@media (prefers-reduced-motion: no-preference) {
  .chip-pay { animation: floaty 6s ease-in-out infinite; }
  .chip-mail { animation: floaty 6s ease-in-out -3s infinite; }
  @keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}
.dots { display: flex; gap: 8px; margin-top: 10px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #5d625e; }
.dots button[aria-current="true"] { background: var(--green); width: 26px; border-radius: 6px; }

/* Photos */
.photo { position: relative; border-radius: 18px; overflow: hidden; background: #dfe6dd; box-shadow: 0 30px 60px rgba(16,38,26,0.22), 0 6px 14px rgba(16,38,26,0.10); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(16,38,26,0.28) 100%); }
.hero-photo { position: absolute; inset: 3% 2% 8% 2%; }
.frow-art .photo, .type-art .photo { aspect-ratio: 4 / 3; }
.frow-art::before, .type-art::before { inset: -7% 30% 30% -7% !important; border-radius: 28px !important; }
.step-art .photo { aspect-ratio: 4 / 3; border-radius: 12px; box-shadow: 0 16px 30px rgba(16,38,26,0.16); }
.faq-art .photo { aspect-ratio: 4 / 5; }
.facts-art { position: relative; }
.facts-art .photo { aspect-ratio: 5 / 4; }
.tap-waves { position: absolute; left: 50%; top: 34%; width: 34%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 12px rgba(86,173,71,0.9)); pointer-events: none; }
.band-art .photo { aspect-ratio: 4 / 3; box-shadow: 0 30px 60px rgba(0,0,0,0.40), 0 0 0 1px rgba(255,255,255,0.12); }
.band-art svg { display: none; }
.screen-ui { position: absolute; left: 36.6%; top: 9.4%; width: 29.2%; height: 68.8%; border-radius: 4px; background: linear-gradient(180deg, #ffffff 0%, #f3f8f1 100%); color: #2f3330; font-family: var(--font); display: flex; flex-direction: column; gap: 6%; padding: 7% 7% 6%; overflow: hidden; }
.su-top { background: linear-gradient(160deg, #6cc35b, #3f8a35); color: #fff; font-size: clamp(8px, 1vw, 12px); font-weight: 500; border-radius: 4px; padding: 4% 6%; }
.su-total { font-size: clamp(12px, 1.6vw, 20px); font-weight: 700; font-variant-numeric: tabular-nums; }
.su-bars { flex: 1; display: flex; align-items: flex-end; gap: 6%; border-bottom: 1px solid #e3e7e2; }
.su-bars i { flex: 1; background: linear-gradient(180deg, #7ccc6b, #3f8a35); border-radius: 2px 2px 0 0; }
.su-row { display: flex; justify-content: space-between; font-size: clamp(7px, 0.9vw, 11px); }
.su-row b { font-weight: 700; color: #3f8a35; }
.e-receipt { position: absolute; left: 0; top: -28%; width: 36%; min-width: 150px; z-index: 2; padding: 10px 12px 12px; border-radius: 14px; background: rgba(255,255,255,0.86); border: 1px solid rgba(255,255,255,0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 22px 44px rgba(16,38,26,0.25); color: var(--ink); font-size: 12px; line-height: 1.3; display: flex; flex-direction: column; gap: 6px; font-variant-numeric: tabular-nums; }
.er-head { display: flex; flex-direction: column; background: linear-gradient(160deg, #6cc35b, #3f8a35); color: #fff; border-radius: 8px; padding: 6px 8px; }
.er-head span { font-weight: 500; font-size: 13px; }
.er-head small { font-size: 10px; opacity: 0.9; }
.er-line, .er-total { display: flex; justify-content: space-between; gap: 8px; }
.er-line b { font-weight: 400; }
.er-total { border-top: 1px dashed #c9cfc8; padding-top: 6px; font-weight: 700; }
.er-total b { color: var(--green-dark); }
.er-foot { font-size: 10.5px; color: var(--text); }
@media (max-width: 900px) { .e-receipt { left: auto; right: -2%; top: auto; bottom: 3%; width: 46%; } .e-receipt .er-line { display: none; } }
@media (max-width: 560px) { .e-receipt { right: 0; bottom: 3%; width: 58%; min-width: 0; font-size: 10.5px; padding: 8px 9px 9px; } }
.chip-tap { left: -4%; bottom: 10%; }
.chip-tap2 { right: -3%; top: 8%; }

/* Facts strip */
.facts { background: linear-gradient(180deg, var(--paper) 0%, var(--green-pale) 100%); }
.features-sec { background: linear-gradient(180deg, var(--green-pale) 0%, var(--paper) 22%, var(--paper) 78%, var(--green-pale) 100%); }
.start-sec { background: linear-gradient(180deg, var(--paper) 0%, #eef7eb 100%); }
.facts .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: center; padding-block: 64px; }
.facts h2 { font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; }
.facts h2 em { font-style: normal; color: var(--green); }
.fact-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fact-list li { background: var(--green-pale); border: 1px solid var(--green-soft); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); font-weight: 400; font-size: 15px; line-height: 1.35; }
.fact-list svg { width: 34px; height: 34px; color: var(--green); }

/* Business types (tabs) */
.types-band { position: relative; overflow: hidden; background: radial-gradient(circle at 18% 30%, rgba(86,173,71,0.40) 0, transparent 45%), radial-gradient(circle at 85% 70%, rgba(31,181,165,0.25) 0, transparent 45%), linear-gradient(120deg, #0b0d0c 0%, #12291c 60%, #0b0d0c 100%); }
.types-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.07) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.types-band .wrap { position: relative; padding-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.types-band .kicker { color: #cfd8d2; font-size: 15px; }
.types-band h2 { color: var(--paper); font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.types-band h2 em { font-style: normal; color: var(--green); }
.type-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 26px; }
.type-tabs button { border: 0; background: transparent; color: #e9eee9; font-size: 17px; font-weight: 400; padding: 16px 28px; border-radius: 10px 10px 0 0; }
.type-tabs button:hover { background: rgba(255,255,255,0.08); }
.type-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); font-weight: 500; box-shadow: 0 -10px 30px rgba(0,0,0,0.25); }
.type-panel { background: var(--paper); }
.type-panel .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 56px 64px; }
.type-copy { display: flex; flex-direction: column; gap: 26px; }
.type-copy h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 10px; }
.type-copy ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.type-copy li { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.type-copy li i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px; }
.q i { background: #f1f2f1; color: #8a8f8a; }
.a i { background: linear-gradient(160deg, #6cc35b, #3f8a35); color: var(--paper); }
.type-art { position: relative; max-width: 480px; width: 100%; justify-self: center; }
.type-art::before { content: ""; position: absolute; inset: 4% 8%; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #ffffff 0, rgba(255,255,255,0) 40%), linear-gradient(140deg, #e6f4e2 0%, #c9e6c1 100%); }
.type-art svg { position: relative; filter: drop-shadow(0 18px 22px rgba(16,38,26,0.16)); }
.type-note { font-size: 13px; }

/* Section titles */
section.s { padding-block: 72px; }
.s-title { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 48px; }
.s-title h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 500; text-transform: uppercase; letter-spacing: 1.2px; }
.s-title .rule { width: 56px; height: 4px; background: var(--green); border-radius: 2px; }

/* Feature rows */
.rows { display: flex; flex-direction: column; gap: 56px; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.frow:nth-child(even) .frow-art { order: 2; }
.frow-art { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.frow-art::before { content: ""; position: absolute; inset: 6% 10%; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #ffffff 0, rgba(255,255,255,0) 40%), linear-gradient(140deg, #e6f4e2 0%, #c9e6c1 100%); box-shadow: 0 24px 60px rgba(63,138,53,0.18); }
.frow-art svg { position: relative; filter: drop-shadow(0 18px 22px rgba(16,38,26,0.16)); }
.step-art svg, .choice-art svg, .band-art svg, .facts svg.art { filter: drop-shadow(0 14px 18px rgba(16,38,26,0.14)); }
.frow-copy { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.frow-copy .num { color: var(--green); font-weight: 900; font-size: 15px; letter-spacing: 1px; }
.frow-copy h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.frow-copy p { font-size: 17px; }

/* Steps (Option C) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step-art { background: linear-gradient(160deg, #f6fbf4 0%, #d9eed3 100%); border-radius: 18px; padding: 14px; position: relative; }
.step-n { position: absolute; top: 12px; left: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--paper); font-weight: 700; display: grid; place-items: center; font-size: 18px; }
.step h3 { font-size: 20px; font-weight: 500; margin-top: 6px; }

/* Pricing band */
.band { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 25%, rgba(86,173,71,0.45) 0, transparent 45%), linear-gradient(120deg, var(--navy) 0%, #163447 50%, #1d5a36 100%); color: var(--band-text); }
.band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.07) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.band .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: center; padding-block: 72px; }
.band h2 { color: var(--paper); font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.band h2 em { font-style: normal; color: var(--green); }
.band-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.price-big { font-size: clamp(48px, 7vw, 80px); font-weight: 900; color: var(--paper); line-height: 1; letter-spacing: -1px; }
.price-big span { color: var(--green); font-size: 0.4em; font-weight: 500; letter-spacing: 0; }
.price-table { border-collapse: collapse; width: 100%; color: var(--paper); font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.16); font-weight: 400; }
.price-table th { color: var(--band-text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; }
.price-table td:last-child { font-weight: 500; }

/* Get started */
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.choice { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: var(--paper); box-shadow: 0 24px 50px rgba(16, 38, 26, 0.10), 0 4px 10px rgba(16, 38, 26, 0.05); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.choice:hover { transform: translateY(-6px); box-shadow: 0 34px 64px rgba(16, 38, 26, 0.16), 0 6px 14px rgba(16, 38, 26, 0.06); }
.fact-list li { box-shadow: 0 10px 24px rgba(16, 38, 26, 0.06); }
.choice-art { background: linear-gradient(160deg, #f6fbf4 0%, #d6edcf 100%); padding: 12px 18px 0; }
.choice-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; align-items: flex-start; }
.choice h3 { font-size: 20px; font-weight: 500; }
.choice p { flex: 1; }
.choice-btn { border: 0; background: linear-gradient(180deg, #66bd56 0%, #3f8a35 100%); color: var(--paper); font-weight: 500; font-size: 15px; padding: 10px 18px; border-radius: 9px; }
.choice-btn.ghost { background: transparent; color: var(--green-dark); border: 2px solid var(--green); }
.small-print { text-align: center; margin-top: 24px; font-size: 14px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq-art { position: sticky; top: 80px; }
.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; color: var(--ink); font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 24px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; }

/* Footer */
.site-foot { background: linear-gradient(120deg, #0b0d0c 0%, #10261a 100%); color: #b4b8b4; font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; padding-block: 36px; }
.site-foot .logo-word b { color: var(--paper); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: #e8ebe8; text-decoration: none; }
.foot-meta { display: flex; flex-direction: column; gap: 6px; }


@media (max-width: 900px) {
  .hero::before, .hero::after, .hero-panel { display: none; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 40px 36px; }
  .hero-art { order: -1; background: linear-gradient(160deg, #f6fbf4 0%, #cfe8c9 100%); border-radius: 18px; border-top: 6px solid var(--green); }
  .type-panel .wrap { grid-template-columns: minmax(0, 1fr); }
  .type-art { order: -1; max-width: 360px; }
  .type-tabs button { padding: 12px 16px; font-size: 15px; }
  .chip-pay { left: 3%; top: 4%; }
  .chip-mail { right: 3%; bottom: 14%; }
  .facts .wrap, .band .wrap, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-art { position: static; max-width: 320px; margin: 0 auto; }
  .frow { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .frow:nth-child(even) .frow-art { order: 0; }
  .frow-art { max-width: 380px; }
  .steps, .choices { grid-template-columns: minmax(0, 1fr); }
  .band-art { max-width: 300px; }
}
@media (max-width: 560px) {
  .nav { gap: 16px; }
  .nav .play { display: none; }
  .fact-list { grid-template-columns: minmax(0, 1fr); }
  section.s { padding-block: 56px; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }
@media (prefers-reduced-motion: no-preference) {
  .choice-btn, .play, .switch button { transition: transform 0.15s ease, background 0.15s ease; }
  .choice-btn:hover, .play:hover { transform: translateY(-1px); }
}

/* ===== WordPress theme additions (not in the mockup) ===== */
body { margin: 0; }
[hidden] { display: none !important; }
a.logo { text-decoration: none; }
a.play, a.btn-line, a.choice-btn { text-decoration: none; line-height: normal; cursor: pointer; }
a.play, a.play:hover, a.btn-line:hover { color: var(--paper); }
a.choice-btn { display: inline-block; text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; }
.skip-link:focus { left: 16px; top: 16px; }

/* Header dropdowns (User Guide topics) */
.site-head { position: relative; z-index: 20; }
.nav-item { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle { border: 0; background: transparent; color: var(--ink); padding: 6px; margin-right: -6px; border-radius: 6px; display: grid; place-items: center; }
.sub-toggle svg { transition: transform 0.2s ease; }
.nav-item a.on + .sub-toggle { color: var(--green); }
.sub { position: absolute; top: calc(100% + 10px); left: -14px; min-width: 240px; max-width: calc(100vw - 32px); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 50px rgba(16,38,26,0.14), 0 4px 10px rgba(16,38,26,0.06); padding: 8px; display: none; flex-direction: column; z-index: 40; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.open .sub { display: flex; }
.nav-item.open .sub-toggle svg { transform: rotate(180deg); }
@media (hover: hover) {
  .nav-item:hover .sub { display: flex; }
  .nav-item:hover .sub-toggle svg { transform: rotate(180deg); }
}
.sub a { padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; line-height: 1.35; }
.sub a:hover { background: var(--green-pale); color: var(--green-dark); }
.sub a.on { color: var(--green); font-weight: 500; background: var(--green-pale); }
@media (max-width: 560px) { .sub { left: auto; right: -8px; } }

/* User Guide topic list (on a page that has child pages) and the "back to" link (on a child page) */
.crumb { display: inline-block; color: #cfd8d2; font-size: 15px; text-decoration: none; margin-bottom: 10px; }
.crumb:hover { color: var(--paper); }
.guide-list { list-style: none; padding: 0 !important; margin: 2em 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.guide-list li + li { margin-top: 0 !important; }
.guide-list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--green-soft); border-radius: 12px; background: var(--green-pale); color: var(--ink); text-decoration: none; box-shadow: 0 10px 24px rgba(16, 38, 26, 0.06); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.guide-list a:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(16, 38, 26, 0.10); }
.guide-list b { font-weight: 500; font-size: 17px; }
.guide-list span { font-size: 14px; color: var(--text); }

/* Inner pages (User Guide, Privacy Policy, Terms of Use, Delete Account) */
.page-band { position: relative; overflow: hidden; background: radial-gradient(circle at 18% 30%, rgba(86,173,71,0.40) 0, transparent 45%), radial-gradient(circle at 85% 70%, rgba(31,181,165,0.25) 0, transparent 45%), linear-gradient(120deg, #0b0d0c 0%, #12291c 60%, #0b0d0c 100%); }
.page-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.07) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.page-band .wrap { position: relative; padding-block: 56px; }
.page-band h1 { color: var(--paper); font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.entry { max-width: 820px; margin: 0 auto; padding: 48px 16px 72px; font-size: 17px; }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; margin-top: 1.8em; }
.entry h3 { font-size: 20px; font-weight: 500; margin-top: 1.5em; }
.entry a { color: var(--green-dark); }
.entry img { max-width: 100%; height: auto; border-radius: 12px; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li + li { margin-top: 0.4em; }
.entry table { border-collapse: collapse; width: 100%; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.entry strong { color: var(--ink); font-weight: 500; }
