/* The Stash & Stitch page: the app's sage and terracotta inside the Poni Apps site (colours from src/ui/theme.ts). */
.ss {
  --ss-bg: #f8f4ee;
  --ss-surface: #ffffff;
  --ss-soft: #ddebe2;
  --ss-ink: #2a2622;
  --ss-muted: #716860;
  --ss-primary: #3f6e58;
  --ss-line: #e3dad0;
  --ss-plus-bg: #2f5546;
  --ss-plus-card: #3e6957;
  --ss-gold: #e9b44c;
  --ss-on-primary: #ffffff;
  --ss-serif: "Fraunces", Georgia, "Noto Serif SC", "Songti SC", serif;
  background: var(--ss-bg);
  color: var(--ss-ink);
}
@media (prefers-color-scheme: dark) {
  .ss {
    --ss-bg: #161412;
    --ss-surface: #221f1c;
    --ss-soft: #23382c;
    --ss-ink: #f3eee8;
    --ss-muted: #a79d93;
    --ss-primary: #7fb89a;
    --ss-on-primary: #10241a;
    --ss-line: #3a3530;
    --ss-plus-bg: #1c3329;
    --ss-plus-card: #2a4639;
  }
}
.ss section { padding: 88px 0; }
.ss h1, .ss h2, .ss .ss-logo, .ss .price { font-family: var(--ss-serif); }
.ss h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 700; }
.ss h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.01em; }
.ss p { margin: 0; }

/* Hero */
.ss-hero { background: var(--ss-soft); overflow: hidden; }
.ss .ss-hero { padding: 64px 0 80px; }
.ss-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.ss-logo { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; font-weight: 700; margin-bottom: 26px; }
.ss-logo img { border-radius: 15px; box-shadow: 0 8px 20px -8px rgba(63, 110, 88, 0.6); }
.ss-logo em { font-style: normal; color: var(--ss-primary); }
.ss-eyebrow { font-weight: 700; color: var(--ss-primary); font-size: 1rem; margin-bottom: 8px !important; }
.ss h1 { font-size: clamp(2.7rem, 6.6vw, 4.8rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 700; }
.ss h1 .eyes { display: inline-block; font-size: 0.8em; }
html[lang="zh-Hans"] .ss h1, html[lang="ja"] .ss h1, html[lang="ko"] .ss h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.12; }
.ss-lead { font-size: 1.18rem; color: var(--ss-muted); max-width: 540px; margin-bottom: 26px !important; }
.ss-soon, .ss-btn {
  display: inline-flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline;
  padding: 14px 26px; border-radius: 999px;
  background: var(--ss-primary); color: var(--ss-on-primary); font-weight: 500; text-decoration: none;
}
.ss-soon strong { font-weight: 800; }
.ss-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 22px; }
.ss-chips li { background: var(--ss-surface); padding: 6px 14px; border-radius: 999px; font-size: 0.86rem; font-weight: 700; }
.ss-jumps { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ss-jumps a, .ss-link { color: var(--ss-primary); font-weight: 700; text-decoration: none; }
.ss-jumps a:hover, .ss-link:hover { text-decoration: underline; }
.ss-hero-phone { position: relative; display: flex; justify-content: center; }
.ss-hero-phone .yarn { position: absolute; inset-inline-start: calc(50% - 222px); bottom: 26px; z-index: 2; }
.ss-hero-phone .phone-frame { width: min(300px, 78vw); transform: rotate(2deg); }

/* Phones */
.phone-frame {
  position: relative; width: 100%; max-width: 280px; aspect-ratio: 1 / 2;
  border: 9px solid #2a2622; border-radius: 40px; background: #2a2622; overflow: hidden;
  box-shadow: 0 34px 60px -28px rgba(47, 85, 70, 0.65);
}
.phone-frame video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 31px; background: var(--ss-bg); }
.vid-toggle {
  position: absolute; right: 10px; bottom: 12px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(42, 38, 34, 0.5); cursor: pointer; display: grid; place-items: center;
}
.vid-toggle:focus-visible { outline: 3px solid var(--ss-gold); outline-offset: 2px; }
.vid-toggle span { display: block; width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.is-playing .vid-toggle span { width: 12px; height: 15px; margin: 0; border: 0; border-left: 4px solid #fff; border-right: 4px solid #fff; }

/* Steps */
.ss-steps h2 { text-align: center; margin-bottom: 40px; }
.ss-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ss-steps li { background: var(--ss-surface); border: 1px solid var(--ss-line); border-radius: 26px; padding: 28px; }
.ss-steps p { color: var(--ss-muted); }
.num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ss-soft); color: var(--ss-primary); font-family: var(--ss-serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }

/* Free and Plus labels */
.tier { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 12px; }
.tier-free { background: #f6e1d7; color: #7a3a20; }
.tier-plus { background: #e9b44c; color: #2f2206; }
.tier-head { max-width: 720px; margin-bottom: 56px; }
.tier-head p { font-size: 1.15rem; }
.ss-free .tier-head p, .feature-words p, .feature-small p { color: var(--ss-muted); }

/* Features */
.feature-big { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: center; max-width: 880px; margin: 0 auto 72px; }
.feature-big:nth-of-type(even) { grid-template-columns: 1fr 280px; }
.feature-big:nth-of-type(even) .phone-frame { order: 2; }
.feature-words h3 { font-family: var(--ss-serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 12px; }
.feature-words p { font-size: 1.14rem; max-width: 460px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 44px 28px; align-items: start; }
.feature-small .phone-frame { margin-bottom: 18px; max-width: 232px; border-width: 8px; border-radius: 34px; }
.feature-small video { border-radius: 26px; }
.also-free { background: var(--ss-soft); border-radius: 28px; padding: 26px; }
.also-free h3 { font-family: var(--ss-serif); font-size: 1.5rem; }
.also-free ul { margin: 0; padding: 0; list-style: none; }
.also-free li { padding-block: 8px; padding-inline: 28px 0; position: relative; font-weight: 500; font-size: 0.95rem; }
.also-free li::before { content: "✓"; position: absolute; inset-inline-start: 2px; color: var(--ss-primary); font-weight: 800; }

/* Plus */
.ss-plus { background: var(--ss-plus-bg); color: #fff; }
.ss-plus .tier-head p, .ss-plus .feature-words p, .ss-plus .feature-small p { color: #dcebe2; }
.price-card { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: flex-end; margin-top: 28px; padding: 22px 28px; border-radius: 26px; background: var(--ss-plus-card); }
.price-option span { color: #dcebe2; font-weight: 600; }
.price-note { flex-basis: 100%; color: #dcebe2; font-size: 0.95rem; }
.price { font-size: 3.2rem; font-weight: 700; line-height: 1; color: var(--ss-gold); }
.price-words { flex: 1; min-width: 240px; display: grid; gap: 4px; font-size: 0.95rem; color: #dcebe2; }
.price-words strong { font-size: 1.1rem; color: #fff; }
.all-plus-title { font-family: var(--ss-serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 80px 0 28px !important; }
.all-plus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.all-plus li { display: flex; gap: 14px; padding: 18px; border-radius: 20px; background: var(--ss-plus-card); }
.all-plus .emoji { font-size: 1.6rem; line-height: 1.2; }
.all-plus strong { display: block; margin-bottom: 2px; }
.all-plus p { font-size: 0.9rem; line-height: 1.45; color: #dcebe2; }

/* Comparison */
.ss-compare h2 { text-align: center; margin-bottom: 36px; }
.table-wrap { max-width: 780px; margin: 0 auto; background: var(--ss-surface); border: 1px solid var(--ss-line); border-radius: 26px; overflow: hidden; }
.ss-compare table { width: 100%; border-collapse: collapse; }
.ss-compare th, .ss-compare td { padding: 13px 16px; border-bottom: 1px solid var(--ss-line); text-align: center; }
.ss-compare th:first-child { text-align: start; font-weight: 500; }
.ss-compare thead th { font-weight: 800; background: var(--ss-soft); }
.ss-compare thead th:first-child { font-weight: 800; }
.ss-compare tbody tr:last-child > * { border-bottom: 0; }
.ss-compare td { width: 84px; }
.yes { color: #1f8a4c; font-weight: 800; font-size: 1.15rem; }
.no { color: var(--ss-muted); }
@media (prefers-color-scheme: dark) { .yes { color: #7ddc9f; } }

/* Privacy */
.ss-privacy { background: var(--ss-soft); text-align: center; }
.ss-privacy .yarn { margin: 0 auto 8px; }
.ss-privacy ul { list-style: none; margin: 34px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: start; }
.ss-privacy li { background: var(--ss-surface); border-radius: 24px; padding: 26px; }
.ss-privacy li p { color: var(--ss-muted); }

/* Ending */
.ss-cta { text-align: center; }
.ss-cta .yarn { margin: 0 auto 8px; }
.ss-cta > .container > p { color: var(--ss-muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 18px; }
.ss-cta .video-note { font-size: 0.86rem !important; }
.lang-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.lang-switch a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ss-muted); font-size: 0.92rem; }
.lang-switch a:hover { background: var(--ss-soft); }
.lang-switch a[aria-current] { background: var(--ss-primary); color: var(--ss-on-primary); }

/* A little life, for people who don't mind motion */
@media (prefers-reduced-motion: no-preference) {
  .ss-hero-phone .yarn { animation: ss-bob 2.6s ease-in-out infinite; }
  .yarn-cheer { animation: ss-hop 0.9s ease-in-out infinite; }
  .ss h1 .eyes { animation: ss-peek 3.6s ease-in-out infinite; }
}
@keyframes ss-bob { 50% { transform: translateY(-8px); } }
@keyframes ss-hop { 50% { transform: translateY(-12px); } }
@keyframes ss-peek { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(-5px); } 90% { transform: translateX(5px); } }

@media (max-width: 860px) {
  .ss section { padding: 64px 0; }
  .ss-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .ss-hero-phone .yarn { inset-inline-start: 2%; }
  .ss-steps ol, .ss-privacy ul { grid-template-columns: 1fr; }
  .feature-big, .feature-big:nth-of-type(even) { grid-template-columns: 1fr; gap: 26px; margin-bottom: 56px; justify-items: center; }
  .feature-big:nth-of-type(even) .phone-frame { order: 0; }
  .feature-words { width: 100%; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; justify-items: center; }
  .feature-small { width: 100%; max-width: 320px; }
  .feature-small .phone-frame { max-width: 100%; }
  .also-free { width: 100%; }
  .ss-compare th, .ss-compare td { padding: 11px 10px; font-size: 0.92rem; }
  .ss-compare td { width: 60px; }
}

/* A row of stitches between sections */
.stitch-row { line-height: 0; background: var(--ss-bg); padding-top: 22px; }
.stitch-row svg { display: block; width: 100%; height: 26px; }
