/* ============================================================
   FILE:    assets/css/softofu-home.css
   PURPOSE: Styling for the Softofu PLATFORM homepage only
            (root index.php) — the dark "night ocean" landing page
            with the hero and the featured-app cards.
   INPUT:   none (static stylesheet; fonts are self-hosted).
   OUTPUT:  the calm, premium night look of softofu.com's front door.
   HOW:     tokens at the top (all colours/sizes derive from them),
            then base → header → hero → app cards → "more apps" →
            footer → motion → responsive. The tools app keeps its
            own cream stylesheet (softofu.css); the two never mix.
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
:root {
  /* Colour — deep navy night, cyan + violet accents */
  --home-bg:        #050b16;                 /* page base — deep navy-black */
  --home-ink:       #EEF3FB;                 /* main text */
  --home-ink-soft:  #A9B6CE;                 /* secondary text */
  --home-ink-mute:  #7E8DAA;                 /* eyebrows, captions, footer */
  --home-cyan:      #7DD3FC;
  --home-blue:      #5B8DEF;
  --home-violet:    #8B7CF6;
  --home-line:      rgba(255, 255, 255, 0.10);
  --home-glass:     rgba(255, 255, 255, 0.04);
  --home-cta-glow:  rgba(99, 118, 241, 0.45);

  /* App-card themes (per-card via modifier classes below) */
  --teal-border:    rgba(64, 200, 170, 0.32);
  --teal-border-hi: rgba(94, 224, 190, 0.55);
  --teal-glow:      rgba(30, 160, 130, 0.22);
  --teal-tile-a:    #5FE0A4;
  --teal-tile-b:    #1DAE86;
  --ocean-border:   rgba(100, 190, 255, 0.28);
  --ocean-border-hi:rgba(130, 205, 255, 0.55);
  --ocean-glow:     rgba(60, 150, 240, 0.22);
  --ocean-tile-a:   #7CC8FF;
  --ocean-tile-b:   #2A7FD8;

  /* Shape */
  --home-radius-card: 24px;
  --home-radius-tile: 22px;
  --home-radius-ctrl: 14px;
  --home-shadow: 0 25px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* Type — one friendly geometric sans + one handwriting face for the notes */
  --home-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --home-hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  /* Layout */
  --home-maxw: 1500px;
  --home-gutter: clamp(20px, 4vw, 64px);
  --home-header-h: 84px;
  --home-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Self-hosted fonts (assets/fonts). Google Fonts is blocked by the strict CSP, and self-hosting
   is faster anyway. Variable files: one request per face. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/caveat-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------
   2. BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.home {
  margin: 0;
  min-height: 100vh;
  font-family: var(--home-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--home-ink);
  /* Deep navy base + two restrained atmospheric glows (top-right violet-blue, left teal). */
  background:
    radial-gradient(circle at 75% 15%, rgba(70, 90, 180, 0.15), transparent 35%),
    radial-gradient(circle at 15% 60%, rgba(20, 110, 130, 0.08), transparent 35%),
    var(--home-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* An extremely slow drifting glow behind everything — transform-only, so it costs nothing. */
body.home::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 30% 28% at 62% 30%, rgba(110, 120, 230, 0.10), transparent 70%),
    radial-gradient(ellipse 26% 24% at 22% 78%, rgba(30, 140, 170, 0.07), transparent 70%);
  animation: home-drift 48s ease-in-out infinite alternate;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--home-cyan); outline-offset: 3px; border-radius: 6px; }

.home-wrap { width: 100%; max-width: var(--home-maxw); margin: 0 auto; padding: 0 var(--home-gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--home-ink); color: var(--home-bg); border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------
   3. BUTTONS
   ------------------------------------------------------------ */
.home-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border-radius: var(--home-radius-ctrl);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 250ms var(--home-ease), box-shadow 250ms var(--home-ease), background-color 250ms var(--home-ease), border-color 250ms var(--home-ease);
}
.home-btn__icon { font-size: 1.05em; transition: transform 250ms var(--home-ease); }
.home-btn--primary {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--home-blue) 0%, var(--home-violet) 100%);
  box-shadow: 0 10px 30px var(--home-cta-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.home-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px var(--home-cta-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.home-btn--primary:hover .home-btn__icon { transform: translateX(3px); }
.home-btn--ghost { color: var(--home-ink); background: transparent; padding-left: 14px; padding-right: 14px; }
.home-btn--ghost:hover { color: #FFFFFF; }
.home-btn--ghost:hover .home-btn__icon { transform: translateY(2px); }
.home-btn--lg { min-height: 58px; padding: 0 30px; font-size: 1.1rem; border-radius: 16px; }
.home-btn--lg.home-btn--ghost { padding: 0 18px; }

/* ------------------------------------------------------------
   4. HEADER — floating & transparent, sits over the hero art
   ------------------------------------------------------------ */
.home-header { position: relative; z-index: 10; }
.home-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--home-header-h); }
.home-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.home-brand__mark { width: 44px; height: 44px; filter: drop-shadow(0 6px 14px rgba(120, 150, 255, 0.35)); }
.home-brand__name { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.02em; color: var(--home-ink); }

.home-nav { display: flex; align-items: center; gap: 32px; }
.home-nav__list { display: flex; align-items: center; gap: 34px; }
.home-nav__link {
  position: relative; display: inline-block; padding: 8px 2px;
  font-size: 1.02rem; font-weight: 500; color: var(--home-ink-soft); text-decoration: none;
  transition: color 200ms var(--home-ease);
}
.home-nav__link:hover, .home-nav__link:focus-visible { color: var(--home-ink); }
/* The current item: a subtle glowing underline */
.home-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--home-cyan), var(--home-blue));
  opacity: 0; transform: scaleX(0.6); transition: opacity 200ms var(--home-ease), transform 200ms var(--home-ease);
}
.home-nav__link[aria-current="page"] { color: var(--home-ink); }
.home-nav__link[aria-current="page"]::after { opacity: 1; transform: scaleX(1); box-shadow: 0 0 12px rgba(125, 211, 252, 0.55); }
.home-nav__link:hover::after { opacity: 0.6; transform: scaleX(1); }
.home-nav__cta { min-height: 46px; padding: 0 24px; border-radius: 999px; }

.home-nav-toggle { display: none; }

/* ------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------ */
.hero { position: relative; z-index: 1; padding: 56px 0 32px; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 920px) 1fr; align-items: center; min-height: 400px; }
.hero__copy { position: relative; z-index: 2; max-width: 920px; }
.hero__eyebrow {
  margin-bottom: 22px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--home-ink-mute);
}
.hero__title {
  font-size: clamp(3rem, 5.2vw, 5.4rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.04em;
  color: #FFFFFF;
}
.hero__title-accent {
  background: linear-gradient(90deg, var(--home-cyan) 0%, var(--home-blue) 48%, var(--home-violet) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero__sub { margin-top: 18px; font-size: clamp(1.4rem, 2.1vw, 2.15rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; color: var(--home-ink); }
.hero__body { margin-top: 14px; max-width: 520px; font-size: 1.1rem; line-height: 1.55; color: var(--home-ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }

/* The artwork: bleeds up behind the transparent header and off the right edge, and is masked
   on every side so it dissolves into the page rather than sitting in a rectangle. */
.hero__art {
  position: absolute; z-index: 0;
  /* Tall enough that the 16:9 art renders near 1:1 and continues behind the card tops (as in
     the reference); right-anchored so the lighthouse stays in frame while the left side dissolves. */
  top: calc(-1 * var(--home-header-h) - 20px); right: calc(-1 * var(--home-gutter)); bottom: -230px;
  width: 66%; min-width: 620px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 76% 72% at 62% 36%, #000 42%, transparent 78%);
          mask-image: radial-gradient(ellipse 76% 72% at 62% 36%, #000 42%, transparent 78%);
}
.hero__art-img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 40%; }
/* Belt-and-braces fade toward the copy (left) and toward the cards (bottom). */
.hero__art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--home-bg) 0%, rgba(5, 11, 22, 0.5) 14%, transparent 34%),
    linear-gradient(to top, var(--home-bg) 0%, rgba(5, 11, 22, 0.75) 20%, transparent 52%);
}

/* ------------------------------------------------------------
   6. FEATURED APP CARDS
   ------------------------------------------------------------ */
.apps { position: relative; z-index: 2; padding: 8px 0 0; }
.apps__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

.app-card {
  --card-border: var(--home-line); --card-border-hi: rgba(255, 255, 255, 0.22); --card-glow: transparent;
  --tile-a: #8FA3C4; --tile-b: #4C5B7A;
  position: relative; display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 32px; align-items: center;
  min-height: 250px; padding: 36px 40px;
  border: 1px solid var(--card-border); border-radius: var(--home-radius-card);
  background: var(--home-glass);
  box-shadow: var(--home-shadow);
  transition: transform 300ms var(--home-ease), border-color 300ms var(--home-ease), box-shadow 300ms var(--home-ease);
}
.app-card--teal {
  --card-border: var(--teal-border); --card-border-hi: var(--teal-border-hi); --card-glow: var(--teal-glow);
  --tile-a: var(--teal-tile-a); --tile-b: var(--teal-tile-b);
  background: linear-gradient(135deg, rgba(15, 65, 66, 0.55), rgba(7, 28, 34, 0.75));
}
.app-card--ocean {
  --card-border: var(--ocean-border); --card-border-hi: var(--ocean-border-hi); --card-glow: var(--ocean-glow);
  --tile-a: var(--ocean-tile-a); --tile-b: var(--ocean-tile-b);
  background: linear-gradient(135deg, rgba(14, 52, 92, 0.55), rgba(6, 22, 44, 0.80));
}
/* Hover: lift, brighten the border, a soft internal glow — restrained. */
.app-card:hover, .app-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--card-border-hi);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 80px var(--card-glow);
}

.app-card__icon {
  width: 172px; height: 172px; overflow: hidden;
  border-radius: var(--home-radius-tile);
  background: linear-gradient(145deg, var(--tile-a), var(--tile-b));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: grid; place-items: center;
  transition: transform 300ms var(--home-ease);
}
.app-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.app-card:hover .app-card__icon { transform: scale(1.03); }

.app-card__body { min-width: 0; }
.app-card__title { max-width: 268px; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.app-card__link { color: #FFFFFF; text-decoration: none; }
/* Stretch the single title link over the whole card (the card is the tap target). */
.app-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.app-card__link:focus-visible { outline: none; }
.app-card:focus-within { outline: 2px solid var(--home-cyan); outline-offset: 3px; }
.app-card__desc { margin-top: 8px; font-size: 1.06rem; line-height: 1.45; color: var(--home-ink-soft); max-width: 254px; }
.app-card__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.app-card__tag {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem; font-weight: 500; color: #CBD5E8;
}
.app-card--ocean .app-card__tag { border-color: rgba(120, 190, 255, 0.30); }

/* Decorative handwritten note (top-right of the card, next to the copy). Desktop only. */
.app-card__note {
  position: absolute; top: 34px; right: 34px; width: 130px;
  font-family: var(--home-hand); font-size: 1.3rem; font-weight: 500; line-height: 1.15;
  color: rgba(205, 220, 245, 0.85); transform: rotate(-3deg);
}
.app-card--ocean .app-card__note { top: 40px; }

/* The circular arrow button (bottom-right). It's decorative — the whole card is the link. */
.app-card__arrow {
  position: absolute; right: 30px; bottom: 30px;
  display: grid; place-items: center; width: 58px; height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.35rem; color: #FFFFFF;
  transition: transform 300ms var(--home-ease), background-color 300ms var(--home-ease), border-color 300ms var(--home-ease);
}
.app-card--ocean .app-card__arrow { border-color: rgba(130, 205, 255, 0.5); background: rgba(80, 160, 255, 0.12); }
.app-card:hover .app-card__arrow { transform: translateX(4px); background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.5); }

/* ------------------------------------------------------------
   7. MORE APPS COMING SOON — a quiet divider
   ------------------------------------------------------------ */
.soon { padding: 64px 0 36px; text-align: center; }
.soon__title { display: flex; align-items: center; gap: 22px; margin: 0 auto; max-width: 760px; }
.soon__line { flex: 1 1 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent); }
.soon__label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--home-ink-soft); white-space: nowrap; }
.soon__star { color: #D9E2F5; margin: 0 6px; }
.soon__text { margin-top: 14px; font-size: 0.98rem; color: var(--home-ink-mute); }

/* ------------------------------------------------------------
   8. FOOTER
   ------------------------------------------------------------ */
.home-footer { margin-top: 40px; border-top: 1px solid var(--home-line); }
.home-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.home-footer__copy { font-size: 0.92rem; color: var(--home-ink-mute); }
.home-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.home-footer__nav a { display: inline-block; font-size: 0.92rem; color: var(--home-ink-soft); text-decoration: none; padding: 11px 0; }  /* ≥44px tap height */
.home-footer__nav a:hover { color: var(--home-ink); }

/* ------------------------------------------------------------
   9. MOTION — subtle entrance; fully disabled for reduced-motion
   ------------------------------------------------------------ */
@keyframes home-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes home-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes home-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-3%, 2%, 0); } }
.hero__copy > * { animation: home-rise 700ms var(--home-ease) both; }
.hero__copy > :nth-child(1) { animation-delay: 60ms; }
.hero__copy > :nth-child(2) { animation-delay: 140ms; }
.hero__copy > :nth-child(3) { animation-delay: 220ms; }
.hero__copy > :nth-child(4) { animation-delay: 300ms; }
.hero__copy > :nth-child(5) { animation-delay: 380ms; }
.hero__art { animation: home-fade 1100ms var(--home-ease) both; }
.app-card { animation: home-rise 700ms var(--home-ease) both; }
.app-card:nth-child(1) { animation-delay: 420ms; }
.app-card:nth-child(2) { animation-delay: 540ms; }
.app-card:nth-child(3) { animation-delay: 660ms; }
.app-card:nth-child(4) { animation-delay: 780ms; }
.soon { animation: home-fade 800ms var(--home-ease) 800ms both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.home::before, .hero__copy > *, .hero__art, .app-card, .soon { animation: none !important; }
  .home-btn, .home-btn__icon, .app-card, .app-card__icon, .app-card__arrow, .home-nav__link, .home-nav__link::after { transition: none !important; }
  .app-card:hover { transform: none; }
}

/* ------------------------------------------------------------
   10. RESPONSIVE
   ------------------------------------------------------------ */
/* Very large screens: keep the composition centred; let the type breathe a touch more. */
@media (min-width: 1900px) {
  :root { --home-header-h: 92px; }
  body.home { font-size: 18px; }
}

/* Laptops / small desktops */
@media (max-width: 1280px) {
  .hero__art { width: 60%; min-width: 520px; }
  .app-card { grid-template-columns: 150px minmax(0, 1fr); gap: 26px; padding: 30px 32px; }
  .app-card__icon { width: 150px; height: 150px; }
  .app-card__title { font-size: 1.8rem; }
  .app-card__desc, .app-card__title { max-width: 250px; }
  .app-card__note { width: 130px; font-size: 1.15rem; right: 32px; }
}
@media (max-width: 1100px) {
  .app-card__note { display: none; }   /* decorative only — optional on smaller displays */
  .app-card__desc, .app-card__title { max-width: none; }
}

/* Tablets: hero stacks, artwork becomes a soft band beneath the copy, cards go single-column. */
@media (max-width: 900px) {
  :root { --home-header-h: 72px; }
  .home-header__inner { flex-wrap: wrap; }
  .home-brand__name { font-size: 1.6rem; }
  .home-brand__mark { width: 38px; height: 38px; }

  /* ☰ menu (the shared softofu.js toggles #primary-nav.is-open + aria-expanded) */
  .home-nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 0; margin-left: auto;
    border: 1px solid var(--home-line); border-radius: 12px; background: var(--home-glass); cursor: pointer;
  }
  .home-nav-toggle__bar { display: block; width: 20px; height: 2px; margin: 0 auto; border-radius: 2px; background: var(--home-ink); }
  .home-nav {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px; margin-bottom: 8px;
    border: 1px solid var(--home-line); border-radius: 18px;
    background: rgba(8, 16, 32, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--home-shadow);
  }
  .home-nav.is-open { display: flex; }
  .home-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .home-nav__link { display: block; padding: 12px 14px; font-size: 1.1rem; border-radius: 12px; }
  .home-nav__link::after { display: none; }
  .home-nav__link[aria-current="page"] { background: var(--home-glass); }
  .home-nav__cta { margin: 6px 4px 2px; }

  .hero { padding: 24px 0 8px; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { max-width: 640px; }
  .hero__art {
    position: relative; top: auto; right: auto; bottom: auto;
    width: calc(100% + 2 * var(--home-gutter)); min-width: 0; height: 260px;
    margin: 8px calc(-1 * var(--home-gutter)) -48px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 70%, transparent 100%);
  }
  .hero__art::after { background: linear-gradient(to top, var(--home-bg) 0%, transparent 45%); }
  .hero__art-img { object-position: 74% 48%; }   /* keep the tofu + lantern in the band */

  .apps__grid { grid-template-columns: 1fr; gap: 20px; }
  .app-card { min-height: 0; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; padding: 26px 28px; }
  .app-card__icon { width: 132px; height: 132px; }
  .app-card__body { padding-bottom: 8px; }
  .app-card__desc { max-width: none; }
  .app-card__arrow { right: 22px; bottom: 22px; width: 50px; height: 50px; }
  .soon { padding: 48px 0 24px; }
}

/* Phones */
@media (max-width: 640px) {
  body.home { font-size: 16px; }
  .hero__eyebrow { font-size: 0.72rem; letter-spacing: 0.18em; margin-bottom: 16px; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .hero__title-accent { display: block; }            /* "Small apps." / "Big ideas." on two lines */
  .hero__sub { font-size: 1.3rem; margin-top: 14px; }
  .hero__body { font-size: 1.02rem; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 26px; }
  .hero__actions .home-btn { width: 100%; }
  .hero__art { height: 200px; margin-top: 4px; margin-bottom: -44px; }

  .app-card { grid-template-columns: 1fr; gap: 18px; padding: 22px 22px 26px; }
  .app-card__icon { width: 108px; height: 108px; border-radius: 18px; }
  .app-card__title { font-size: 1.6rem; padding-right: 60px; }
  .app-card__desc { font-size: 1.02rem; }
  .app-card__tags { gap: 8px; margin-top: 16px; }
  .app-card__tag { min-height: 34px; font-size: 0.84rem; padding: 0 13px; }
  .app-card__arrow { right: 20px; bottom: auto; top: 22px; width: 46px; height: 46px; }
  .soon__title { gap: 12px; }
  .soon__label { font-size: 0.7rem; letter-spacing: 0.16em; white-space: normal; }
  .soon__star { margin: 0 3px; }
  .home-footer__inner { flex-direction: column; align-items: flex-start; padding-top: 18px; padding-bottom: 18px; }
}
