/* Gadget Spa — website styles. Colors taken from the game's own interface (warm cream cards, soft brown ink, peach and
   sage accents). System fonts only, so the site loads nothing from other companies. */
:root {
  --ink: #4D4038;        /* the game's text color */
  --muted: #5E5048;
  --soft: #7A6C62;
  --cream: #FFFBF4;      /* the game's card color */
  --sand: #F6EDE1;
  --line: #EADFD1;
  --peach: #F0A373;      /* the game's shop buttons */
  --peach-dark: #B4592A;
  --green: #3F7D56;      /* a deeper version of the game's green, for readable buttons */
  --green-soft: #E3F0E6;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
a { color: var(--peach-dark); }
a:hover { color: #8E4320; }
img, svg { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.3rem; font-weight: 700; min-height: 44px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { text-decoration: underline; }

/* Sections */
section { padding: 72px 0; }
.sand { background: var(--sand); }
.eyebrow { margin: 0; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--peach-dark); }
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.08; margin: 0; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.15; margin: 0 0 22px; }
h3 { font-size: 1.25rem; margin: 0 0 6px; }
.lead { font-size: 1.3rem; color: var(--muted); margin: 0; }
.small { font-size: 0.95rem; color: var(--soft); }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-art { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; align-items: flex-start; gap: 4%; }
.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 700; font-size: 1.05rem; align-self: flex-start; }

/* Phone screenshots */
/* A modern iPhone drawn in CSS around each screenshot: titanium-colored frame, black glass border, the action button
   and volume buttons on the left, the side button on the right, the Dynamic Island and a status bar. Every size is a
   share of the phone's width, so it looks the same at any size. */
.phone { position: relative; width: 48%; max-width: 270px; min-width: 0; container-type: inline-size;
  padding: 3.4%; border-radius: 16.5% / 7.6%;
  background: linear-gradient(150deg, #8F877F 0%, #5D5650 18%, #3B3531 50%, #57504A 82%, #8A827A 100%);
  box-shadow: 0 26px 55px rgba(77, 64, 56, 0.30), 0 6px 14px rgba(77, 64, 56, 0.18); }
.phone::before { content: ""; position: absolute; inset: 1.2%; border-radius: 15.5% / 7.2%; background: #0B0A09; }
.phone .screen { position: relative; aspect-ratio: 1290 / 2796; border-radius: 13% / 6%; overflow: hidden; background: #000; }
.phone .screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; top: 1.55%; left: 50%; transform: translateX(-50%); width: 30.5%; height: 4.05%; border-radius: 999px; background: #000; }
.phone .status { position: absolute; top: 2.1%; left: 0; right: 0; height: 3%; padding: 0 8.5% 0 10.5%; display: flex; justify-content: space-between; align-items: center;
  color: #fff; font: 600 5.3cqw/1 -apple-system, 'SF Pro Text', system-ui, sans-serif; letter-spacing: -0.01em; text-shadow: 0 0 6px rgba(0, 0, 0, 0.25); }
.phone .status .icons { display: flex; align-items: center; gap: 1.2cqw; }
.phone .status svg { display: block; height: 3.9cqw; width: auto; }
.phone .home-bar { position: absolute; bottom: 0.9%; left: 50%; transform: translateX(-50%); width: 36%; height: 0.55%; border-radius: 999px; background: rgba(255, 255, 255, 0.82); }
/* the buttons, standing just proud of the frame */
.phone .btn { position: absolute; width: 1.7%; border-radius: 2px; background: linear-gradient(90deg, #4A433E, #7C746C 55%, #4A433E); }
.phone .btn-action { left: -1.3%; top: 17%; height: 5%; }
.phone .btn-vol-up { left: -1.3%; top: 25.5%; height: 8.5%; }
.phone .btn-vol-down { left: -1.3%; top: 36%; height: 8.5%; }
.phone .btn-side { right: -1.3%; top: 28%; height: 12%; }
.hero-art .phone:nth-child(2) { margin-top: 48px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.card { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.card p { margin: 0; color: var(--muted); }
.icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; background: var(--green-soft); }

/* Gallery */
.gallery { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.gallery figure { margin: 0; flex: 0 1 260px; }
.gallery figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: 1rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-size: 1.2rem; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Long-form pages */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.page h2 { font-size: 1.55rem; margin: 40px 0 12px; }
.page p, .page li { color: var(--muted); }
.page ul, .page ol { padding-left: 24px; }
.callout { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin: 24px 0; }
.callout p { margin: 0; color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--soft); font-size: 0.95rem; }
.site-footer a { color: var(--soft); }

@media (max-width: 600px) {
  section { padding: 52px 0; }
  .badge { width: 100%; justify-content: center; }
}
