/* fiaschi.studio home page (built by site/home/build_home.py). Family tokens from /shared/tokens.css. */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:72px; }
body{ margin:0; background:var(--bg); color:var(--text); font-family:var(--sans); -webkit-font-smoothing:antialiased; line-height:1.5; }
a{ color:inherit; }
img{ display:block; }

/* top bar */
.top{ position:sticky; top:0; z-index:10; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px max(16px, calc((100vw - 1080px) / 2)); background:rgba(15,17,21,.86); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(64,72,89,.5); }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand-symbol{ width:30px; height:30px; }
.brand-word{ height:30px; width:auto; }
.top-actions{ display:flex; align-items:center; gap:6px; }
.langs{ display:flex; align-items:center; gap:2px; }
.lang{ font-family:var(--mono); font-size:12px; letter-spacing:.04em; color:var(--text-muted); text-decoration:none; padding:7px 8px; border-radius:999px; }
a.lang:hover, a.lang:focus-visible{ color:var(--text); background:var(--surface); }
.lang.on{ color:var(--text); font-weight:600; }
.account{ font-size:13.5px; font-weight:600; text-decoration:none; padding:7px 14px; border-radius:999px; border:1px solid var(--border); background:var(--surface); }
.account:hover, .account:focus-visible{ border-color:#E3A24C; }

main{ max-width:1080px; margin:0 auto; padding:0 16px; }

/* buttons */
.btn{ display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:14.5px; text-decoration:none; padding:11px 18px; border-radius:12px;
  border:1px solid var(--border); background:var(--surface); color:var(--text); transition:transform .15s ease, border-color .15s ease, background .15s ease; }
.btn:hover, .btn:focus-visible{ transform:translateY(-1px); border-color:var(--a, #E3A24C); }
.btn.primary{ background:#E3A24C; border-color:#E3A24C; color:#16120b; }
.btn.primary:hover, .btn.primary:focus-visible{ background:#eab063; }

/* hero */
.hero{ text-align:center; padding:64px 0 40px; }
.hero-logo{ position:relative; width:fit-content; margin:clamp(28px, 6vw, 56px) auto clamp(68px, 10vw, 84px); }
.hero-logo img:last-child{ position:relative; z-index:1; display:block; width:clamp(200px, 40vw, 340px); height:auto; }
.hero-logo img:first-child{ position:absolute; z-index:0; left:50%; top:50%; transform:translate(-50%, -50%); opacity:.5;
  width:clamp(130px, 26vw, 220px); height:auto; }
.hero h1{ font-size:clamp(34px, 6vw, 56px); line-height:1.05; letter-spacing:-0.025em; font-weight:650; margin:0 auto 16px; max-width:760px; }
.hero-sub{ font-size:clamp(15.5px, 2vw, 18px); color:var(--text-muted); max-width:620px; margin:0 auto 28px; }
.hero-lang{ font-size:13.5px; color:var(--text-muted); max-width:560px; margin:-14px auto 26px; padding:10px 14px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.hero-cta{ display:flex; flex-direction:column; align-items:center; gap:10px; }
.hero-note{ font-size:13px; color:var(--text-muted); }
.dock{ display:flex; justify-content:center; flex-wrap:wrap; gap:18px 22px; margin:48px auto 0; max-width:640px; }
.dock-app{ display:flex; flex-direction:column; align-items:center; gap:8px; text-decoration:none; font-size:12.5px; color:var(--text-muted); }
.dock-app img{ width:56px; height:56px; border-radius:14px; box-shadow:0 4px 14px rgba(0,0,0,.35); transition:transform .15s ease; }
.dock-app:hover img, .dock-app:focus-visible img{ transform:translateY(-3px); }
.dock-app:hover, .dock-app:focus-visible{ color:var(--text); }

/* one section per app */
.app{ display:grid; grid-template-columns:1fr; gap:32px; align-items:center; padding:56px 0; border-top:1px solid rgba(64,72,89,.55); }
.app-head{ display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.app-icon{ width:64px; height:64px; border-radius:16px; box-shadow:0 4px 14px rgba(0,0,0,.35); }
.app h2{ margin:0; font-size:28px; letter-spacing:-0.015em; font-weight:650; }
.app-tag{ font-family:var(--mono); font-size:11.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--a); }
.pitch{ font-size:clamp(18px, 2.4vw, 22px); line-height:1.35; margin:0 0 16px; letter-spacing:-0.01em; }
.points{ list-style:none; padding:0; margin:0 0 20px; display:flex; flex-direction:column; gap:9px; }
.points li{ position:relative; padding-left:20px; color:var(--text-muted); font-size:15px; }
.points li::before{ content:''; position:absolute; left:2px; top:.62em; width:7px; height:7px; border-radius:50%; background:var(--a); }
.price{ display:flex; align-items:baseline; gap:6px; margin-bottom:4px; }
.price b{ font-family:var(--mono); font-size:20px; font-weight:600; }
.price span{ font-size:13.5px; color:var(--text-muted); }
.price-extra{ font-size:13px; color:var(--text-muted); margin-bottom:4px; }
.app .btn{ margin-top:16px; }

/* phone frame */
.phone{ justify-self:center; width:min(340px, calc(100vw - 40px)); aspect-ratio:390/844; border-radius:42px; padding:10px; background:#05070a;
  box-shadow:0 0 0 1px #2a303c, 0 30px 60px -20px rgba(0,0,0,.7), 0 0 80px -30px var(--a); }
.phone-screen{ width:100%; height:100%; border-radius:33px; overflow:hidden; background:var(--bg); }
.phone-screen img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.screen-ph{ height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; color:var(--text-muted); font-weight:600;
  background:radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--a) 22%, transparent), transparent 70%), var(--bg); }
.screen-ph img{ width:96px; height:96px; border-radius:24px; }

/* bundle */
.bundle{ text-align:center; margin:24px auto 0; padding:44px 20px; max-width:640px; background:var(--surface); border:1px solid var(--border); border-radius:20px; }
.bundle-icons{ display:flex; justify-content:center; gap:8px; margin-bottom:18px; }
.bundle-icons img{ width:40px; height:40px; border-radius:11px; }
.bundle h2{ margin:0 0 6px; font-size:26px; letter-spacing:-0.015em; }
.bundle p{ margin:0 0 14px; color:var(--text-muted); }
.bundle .price{ justify-content:center; }
.price.big b{ font-size:30px; }
.bundle .bundle-note{ font-size:13px; margin:6px 0 20px; }

/* how it works */
.how{ padding:64px 0 24px; }
.how h2{ text-align:center; font-size:24px; letter-spacing:-0.015em; margin:0 0 24px; }
.how-grid{ display:grid; grid-template-columns:1fr; gap:12px; }
.how-item{ background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:18px; }
.how-item b{ display:block; margin-bottom:4px; }
.how-item p{ margin:0; color:var(--text-muted); font-size:14px; }

/* footer */
.foot{ max-width:1080px; margin:40px auto 0; padding:22px 16px 40px; border-top:1px solid rgba(64,72,89,.55); text-align:center; font-size:12.5px; color:var(--text-muted); }
.foot-links{ display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.foot a{ color:var(--text-muted); text-decoration:none; }
.foot a:hover, .foot a:focus-visible{ color:var(--text); text-decoration:underline; }
.foot-co{ line-height:1.6; }

/* phone layout: the text column lines up with the phone frame under it */
/* Excuse Me, the studio's game */
.game{ display:grid; grid-template-columns:1fr; gap:28px; align-items:center; padding:56px 0; border-top:1px solid rgba(64,72,89,.55); }
.games-title{ text-align:center; font-size:24px; letter-spacing:-0.015em; margin:0; padding:64px 0 8px; border-top:1px solid rgba(64,72,89,.55); }
.games-title + .game{ border-top:0; }
.game .app-head .app-tag + .app-tag{ color:var(--text-muted); text-transform:none; letter-spacing:0; font-family:var(--sans); font-size:13px; }
.game .btn.game-btn{ margin-top:16px; background:var(--a); border-color:var(--a); color:var(--on-a, #fff); }
.game .btn.game-btn:hover, .game .btn.game-btn:focus-visible{ background:var(--a); border-color:var(--a); filter:brightness(1.1); }
/* a game still in development: badge above the name, a note under the button */
.dev-badge{ display:inline-flex; align-items:center; gap:7px; margin-bottom:14px; padding:5px 11px; border-radius:999px; font-family:var(--mono); font-size:11.5px; letter-spacing:.04em; text-transform:uppercase;
  color:var(--a); background:color-mix(in srgb, var(--a) 14%, transparent); border:1px solid color-mix(in srgb, var(--a) 45%, transparent); }
.dev-badge::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--a); }
.dev-note{ margin:14px 0 0; padding:10px 14px; font-size:13px; color:var(--text-muted); border:1px dashed color-mix(in srgb, var(--a) 55%, var(--border)); border-radius:12px; }
.game-note{ margin:10px 0 0; font-size:13px; color:var(--text-muted); }
.game-cover{ display:block; width:min(360px, 84vw); margin:0 auto; border-radius:16px; overflow:hidden; border:1px solid var(--border);
  box-shadow:0 30px 60px -20px rgba(0,0,0,.7), 0 0 80px -30px var(--a, #c8281e); transition:transform .2s ease; }
.game-cover:hover, .game-cover:focus-visible{ transform:translateY(-2px); }
.game-cover img{ width:100%; height:auto; }
@media (min-width: 820px){ .game{ grid-template-columns:1.1fr .9fr; gap:56px; padding:80px 24px; } }
/* the cover with a phone screenshot of the game in front of it */
.game-media{ position:relative; width:min(420px, 90vw); margin:0 auto; padding:0 0 28px; }
.game-media .game-cover{ width:78%; margin:0; }
.game-media .game-phone{ position:absolute; right:0; bottom:0; width:42%; border-radius:26px; padding:6px; }
.game-media .game-phone .phone-screen{ border-radius:21px; }
/* a landscape cover (First Fires): no phone in front, the picture fills the column */
.game-media.wide{ width:min(520px, 92vw); padding:0; }
.game-media.wide .game-cover{ width:100%; }
@media (min-width: 820px){ .game.wide .app-text{ order:2; } }
@media (prefers-reduced-motion: reduce){ .game-cover{ transition:none; } }
@media (max-width: 819px){ .app-text{ width:min(340px, calc(100vw - 40px)); margin:0 auto; } }
@media (min-width: 820px){
  .app{ grid-template-columns:1.1fr .9fr; gap:56px; padding:80px 24px; }
  .app.flip .app-text{ order:2; }
  .how-grid{ grid-template-columns:1fr 1fr; }
}
@media (min-width: 1000px){ .how-grid{ grid-template-columns:repeat(4, 1fr); } }
@media (max-width: 520px){ .dock{ display:grid; grid-template-columns:repeat(3, 76px); justify-content:center; } }
@media (max-width: 420px){ .account{ padding:7px 12px; } .lang{ padding:7px 5px; } .brand-word{ display:none; } }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } .btn, .dock-app img{ transition:none; } }

/* links under an app's button: "More about X" (home) */
.page-ctas{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin-top:16px; }
.page-ctas .btn{ margin-top:0 !important; }
.more-link{ font-size:14px; color:var(--text-muted); text-decoration:underline; text-decoration-color:color-mix(in srgb, var(--a, #E3A24C) 60%, transparent); text-underline-offset:3px; }
.more-link:hover, .more-link:focus-visible{ color:var(--text); }

/* the app and game pages (/apps/<app>/, /games/<game>/, built by site/home/pages.py) */
.crumbs{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; padding:20px 0 0; font-size:13px; color:var(--text-muted); }
.crumbs a{ color:var(--text-muted); text-decoration:none; }
.crumbs a:hover, .crumbs a:focus-visible{ color:var(--text); text-decoration:underline; }
.page .page-hero{ border-top:0; padding-top:28px; padding-bottom:56px; }
.page h1{ margin:0; font-size:clamp(30px, 5vw, 40px); letter-spacing:-0.02em; font-weight:650; line-height:1.1; }
.page .pitch{ font-size:clamp(17px, 2.2vw, 19px); line-height:1.5; color:var(--text); }
.page .page-hero .btn.primary:not(.game-btn){ background:var(--a); border-color:var(--a); color:#fff; }
.page .page-hero .btn.primary:not(.game-btn):hover{ filter:brightness(1.1); }
.page .page-hero.game .game-media{ justify-self:center; }
.feats, .faq, .more{ padding:56px 0; border-top:1px solid rgba(64,72,89,.55); }
.feats h2, .faq h2, .more h2{ font-size:24px; letter-spacing:-0.015em; margin:0 0 24px; }
.more h2{ text-align:center; }
.feat-grid{ display:grid; grid-template-columns:1fr; gap:16px; }
.feat{ background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:24px; transition:transform .15s ease, border-color .15s ease; }
.feat:hover{ transform:translateY(-2px); border-color:color-mix(in srgb, var(--a) 50%, var(--border)); }
.feat h3{ margin:0 0 8px; font-size:16px; display:flex; align-items:center; gap:8px; }
.feat h3::before{ content:''; width:8px; height:8px; border-radius:50%; background:var(--a); flex:none; }
.feat p{ margin:0; color:var(--text-muted); font-size:14.5px; }
.qa{ border:1px solid var(--border); border-radius:14px; background:var(--surface); margin-bottom:10px; }
.qa summary{ cursor:pointer; list-style:none; padding:16px 48px 16px 18px; font-weight:600; position:relative; }
.qa summary::-webkit-details-marker{ display:none; }
.qa summary::after{ content:'+'; position:absolute; right:18px; top:50%; transform:translateY(-50%); font-family:var(--mono); color:var(--a); font-size:20px; }
.qa[open] summary::after{ content:'−'; }
.qa p{ margin:0; padding:0 18px 16px; color:var(--text-muted); font-size:14.5px; }
.more .dock{ margin-top:0; max-width:720px; }
@media (min-width: 700px){ .feat-grid{ grid-template-columns:1fr 1fr; } }
@media (min-width: 1000px){ .feat-grid{ grid-template-columns:repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce){ .feat{ transition:none; } }
