/* Pocket Sky Studio. Colors come from the logo: cream paper, plum ink, lavender clouds, star gold, night-sky pocket. */
:root {
  --cream: #fef3e3;
  --paper: #fff9f0;
  --ink: #3d2355;
  --ink-soft: #6a5384;
  --lilac: #b9a2e8;
  --mist: #efe5fb;
  --gold: #f2c46b;
  --gold-deep: #b9822a;
  --night: #2f2858;
  --night-deep: #221d44;
  --on-night: #f6eefe;
  --on-night-soft: #c9bde6;
  --stitch: #8f78bf;
  --shadow: 0 18px 40px -22px rgba(61, 35, 85, .45);

  --display: "Fredoka", "Noto Sans Myanmar", system-ui, sans-serif;
  --body: "Nunito", "Noto Sans Myanmar", system-ui, sans-serif;
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #1f1a3d;
    --paper: #29234d;
    --ink: #f6eefe;
    --ink-soft: #c9bde6;
    --mist: #352d62;
    --gold-deep: #f2c46b;
    --night: #15112e;
    --night-deep: #0f0c24;
    --stitch: #8f78bf;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
:lang(my) body, body:lang(my) { line-height: 1.95; font-size: 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--lilac); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: .005em; }
:lang(my) h1, :lang(my) h2, :lang(my) h3 { line-height: 1.6; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 720px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 12px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header */
.site-head { padding: 14px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.brand img { width: 44px; height: 44px; border-radius: 14px; background: #fef3e3; padding: 3px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--mist); }
.nav .lang { border: 2px dashed var(--stitch); }
@media (max-width: 560px) {
  .brand span { display: none; }
  .nav { gap: 2px; flex-wrap: nowrap; }
  .nav a { padding: 6px 9px; font-size: .9rem; }
  .nav .nav-apps { display: none; }
}

/* Twinkling sky dots, used on hero and pocket */
.sky { position: relative; isolation: isolate; }
.sky::before, .sky::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 22%, var(--gold) 60%, transparent 61%),
    radial-gradient(1.5px 1.5px at 28% 70%, var(--lilac) 60%, transparent 61%),
    radial-gradient(2.5px 2.5px at 82% 18%, var(--gold) 60%, transparent 61%),
    radial-gradient(1.5px 1.5px at 70% 62%, var(--lilac) 60%, transparent 61%),
    radial-gradient(2px 2px at 92% 80%, var(--gold) 60%, transparent 61%),
    radial-gradient(1.5px 1.5px at 6% 88%, var(--lilac) 60%, transparent 61%),
    radial-gradient(2px 2px at 48% 8%, var(--lilac) 60%, transparent 61%);
}
.sky::after {
  background-image:
    radial-gradient(2px 2px at 20% 45%, var(--gold) 60%, transparent 61%),
    radial-gradient(1.5px 1.5px at 60% 30%, var(--gold) 60%, transparent 61%),
    radial-gradient(2px 2px at 88% 48%, var(--lilac) 60%, transparent 61%),
    radial-gradient(1.5px 1.5px at 38% 92%, var(--gold) 60%, transparent 61%);
  animation: twinkle 4.5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .15; } to { opacity: 1; } }

/* Home hero */
.hero { text-align: center; padding: 8px 0 40px; }
.hero h1 { margin: 0 auto; width: min(82%, 420px); }
.hero h1 img { width: 100%; aspect-ratio: 1; mix-blend-mode: multiply; }
.hero .tagline { font-family: var(--display); font-size: clamp(1.35rem, 3.4vw, 1.75rem); font-weight: 500; margin: 4px 0 8px; }
.hero .lede { color: var(--ink-soft); max-width: 34em; margin: 0 auto; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero h1 img { mix-blend-mode: normal; border-radius: 50%; box-shadow: 0 0 0 10px var(--paper); }
}

/* The pocket: a night-sky panel with stitching, the apps live inside */
.pocket {
  background: radial-gradient(120% 90% at 50% 0%, var(--night) 0%, var(--night-deep) 100%);
  color: var(--on-night);
  border-radius: var(--radius-xl) var(--radius-xl) 50% 50% / var(--radius-xl) var(--radius-xl) 90px 90px;
  padding: 56px 0 96px;
  margin: 0 auto;
  width: min(100% - 16px, 1160px);
  position: relative;
}
.pocket::before { /* stitched hem */
  content: ""; position: absolute; left: 22px; right: 22px; top: 18px; height: 0;
  border-top: 3px dashed rgba(201, 189, 230, .55);
  z-index: 1;
}
.pocket > .wrap { position: relative; z-index: 1; }
.pocket h2 { text-align: center; color: var(--on-night); }
.pocket .sub { text-align: center; color: var(--on-night-soft); margin: 0 auto 36px; max-width: 32em; }
.pocket a { text-decoration-color: var(--gold); }

.app-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
  background: rgba(255, 255, 255, .06);
  border: 2px dashed rgba(201, 189, 230, .4);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.app-title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.app-title img { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 0 0 3px rgba(242, 196, 107, .5); }
.app-title h3 { margin: 0; font-size: 1.7rem; }
.app-title p { margin: 0; color: var(--on-night-soft); font-size: .95rem; }
.app-feature p { color: var(--on-night-soft); }
@media (max-width: 760px) {
  .app-feature { grid-template-columns: 1fr; padding: 24px 20px; }
}

/* Fanned cards: the one playful moment */
.fan { position: relative; height: 300px; display: flex; justify-content: center; align-items: flex-end; }
.fan img {
  position: absolute; bottom: 10px; width: 150px; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 14px; border: 4px solid #fff9f0; box-shadow: var(--shadow);
  transform-origin: 50% 110%;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1.2);
}
.fan img:nth-child(1) { transform: rotate(-16deg) translateX(-60px); }
.fan img:nth-child(2) { transform: rotate(0) translateY(-14px); z-index: 1; }
.fan img:nth-child(3) { transform: rotate(16deg) translateX(60px); }
.fan:hover img:nth-child(1) { transform: rotate(-22deg) translateX(-78px); }
.fan:hover img:nth-child(2) { transform: translateY(-26px); }
.fan:hover img:nth-child(3) { transform: rotate(22deg) translateX(78px); }
@media (max-width: 420px) {
  .fan { height: 250px; }
  .fan img { width: 118px; }
  .fan img:nth-child(1) { transform: rotate(-14deg) translateX(-44px); }
  .fan img:nth-child(3) { transform: rotate(14deg) translateX(44px); }
}

.soon-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.soon {
  display: flex; gap: 18px; align-items: center;
  border: 2px dashed rgba(201, 189, 230, .35); border-radius: var(--radius-lg); padding: 18px 20px;
}
.soon img { width: 64px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; transform: rotate(-6deg); flex: none; }
.soon h3 { margin: 0 0 2px; font-size: 1.2rem; }
.soon p { margin: 0; color: var(--on-night-soft); font-size: .95rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 800; padding: 1px 10px; border-radius: 999px; background: rgba(242, 196, 107, .18); color: var(--gold); margin-bottom: 4px; }
@media (max-width: 640px) { .soon-row { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800;
  padding: 12px 22px; border-radius: 999px; background: var(--gold); color: #3d2355;
  box-shadow: 0 6px 0 -1px var(--gold-deep);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 -1px var(--gold-deep); }
.btn.ghost { background: transparent; color: inherit; box-shadow: none; border: 2px dashed currentColor; }
.btn.ghost:hover { transform: none; background: rgba(255, 255, 255, .08); }
.btn[aria-disabled="true"] { opacity: .85; cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: 0 6px 0 -1px var(--gold-deep); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* Promise strip */
.promise { padding: 72px 0 24px; text-align: center; }
.promise ul { list-style: none; padding: 0; margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; }
.promise li { background: var(--paper); border-radius: 999px; padding: 8px 18px; font-weight: 700; box-shadow: var(--shadow); }
.promise li::before { content: "✦"; color: var(--gold-deep); margin-inline-end: 8px; }

/* Taro page */
.taro-hero { padding: 8px 0 32px; text-align: center; }
.taro-hero .cover { border-radius: var(--radius-xl); box-shadow: var(--shadow); margin: 0 auto 28px; width: 100%; max-width: 960px; aspect-ratio: 2752 / 1536; object-fit: cover; }
.taro-hero .lede { color: var(--ink-soft); max-width: 34em; margin: 0 auto; }
.taro-hero .btn-row { justify-content: center; }
.features { display: grid; gap: 18px; grid-template-columns: repeat(6, 1fr); margin-top: 36px; }
.features .feature { grid-column: span 2; }
.features .feature:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
  .features .feature, .features .feature:nth-child(n+4) { grid-column: auto; }
  .features .feature:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}
.feature { background: var(--paper); border-radius: var(--radius-lg); padding: 22px 22px 18px; position: relative; }
.feature::after { content: ""; position: absolute; inset: 7px; border: 2px dashed var(--lilac); border-radius: calc(var(--radius-lg) - 6px); pointer-events: none; opacity: .7; }
.feature .icon { font-size: 1.6rem; line-height: 1; margin-bottom: 8px; display: block; }
.feature h3 { font-size: 1.2rem; margin-bottom: .3em; }
.feature p { margin: 0; color: var(--ink-soft); }
.note-card { margin: 40px auto 0; max-width: 720px; text-align: center; background: var(--mist); border-radius: var(--radius-lg); padding: 22px 26px; }
.note-card p { margin: 0; }

/* Text pages: privacy, delete, support */
.doc { padding: 16px 0 64px; }
.doc header { text-align: center; margin-bottom: 28px; }
.doc header img { width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 14px; }
.doc .meta { color: var(--ink-soft); font-size: .95rem; }
.doc .sheet { background: var(--paper); border-radius: var(--radius-lg); padding: 28px clamp(20px, 4vw, 44px); box-shadow: var(--shadow); }
.doc h2 { font-size: 1.35rem; margin-top: 1.6em; }
.doc h2:first-child { margin-top: 0; }
.doc ul, .doc ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc li::marker { color: var(--stitch); }
.callout { background: var(--mist); border-radius: var(--radius-md); padding: 16px 20px; margin: 0 0 1.2em; }
.callout p:last-child { margin: 0; }
.mail { font-family: var(--display); font-size: clamp(1.25rem, 4vw, 1.6rem); font-weight: 600; word-break: break-word; }
details { border-bottom: 2px dashed var(--lilac); padding: 12px 0; }
details:last-of-type { border-bottom: 0; }
summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--stitch); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 4px; color: var(--ink-soft); }

/* Footer */
.site-foot { margin-top: 56px; padding: 28px 0 40px; border-top: 3px dashed var(--lilac); font-size: .95rem; color: var(--ink-soft); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { font-weight: 700; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .sky::after { animation: none; opacity: .7; }
  .fan img, .btn { transition: none; }
}
