@font-face {
  font-family: "DM Sans";
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/dm-sans.woff2) format("woff2");
}
@font-face {
  font-family: "Fredoka";
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/fredoka-600.woff2) format("woff2");
}
/* Subsets: only the glyphs the example posts use. */
@font-face {
  font-family: "Anton";
  font-display: swap;
  src: url(/assets/fonts/anton-subset.woff2) format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/playfair-subset.woff2) format("woff2");
}

:root {
  --primary: #3d67d6;
  --primary-dark: #2c51b5;
  --on-primary: #fff;
  --secondary-container: #c3d0ff;
  --on-secondary-container: #142a63;
  --bg: #faf8ff;
  --surface: #fff;
  --surface-low: #f1f0fa;
  --ink: #1a1b21;
  --ink-2: #45464f;
  --line: #d9d9e3;
  --sans: "DM Sans", "Noto Sans TC", "PingFang TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fredoka", "DM Sans", "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

img, svg { display: block; max-width: 100%; }

a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { color: var(--primary-dark); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { margin: 0; }
h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  z-index: 10;
}
.skip:focus { top: 12px; color: #fff; }

/* Header */

.site-header { padding: 16px 0; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 1.5rem/1 var(--display);
}
.wordmark:hover { color: var(--ink); }
.wordmark svg { width: 24px; height: 24px; flex: none; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) {
  display: none;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--ink); }
@media (min-width: 720px) {
  .nav a:not(.btn) { display: inline; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); color: var(--on-primary); }
.btn-tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.btn-tonal:hover { background: #b2c2fb; color: var(--on-secondary-container); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s; }
}

/* Sections */

.section { padding: 64px 0; }
.section-alt { background: var(--surface-low); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head p { max-width: 640px; }
.section-head p { margin: 12px 0 0; color: var(--ink-2); }
@media (min-width: 960px) {
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 48px; }
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Hero */

.hero { padding: 24px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 3.5rem); }
.hero h1 em { display: block; font-style: normal; color: var(--primary); }
.hero .lede {
  margin: 20px 0 0;
  max-width: 34rem;
  font-size: 1.1875rem;
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}
.hero-actions .link { font-weight: 600; }
.hero-note { margin: 16px 0 0; font-size: 0.9375rem; color: var(--ink-2); }
@media (min-width: 960px) {
  .hero { padding: 48px 0 112px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}

.hero-visual { margin: 0; }
.stack {
  position: relative;
  width: min(100%, 470px);
  margin: 0 auto;
  padding: 0 0 8px;
}
.stack .peek {
  position: absolute;
  top: 22%;
  width: 44%;
  border-radius: 12px;
}
.stack .peek-l { left: 0; transform: rotate(-6deg); }
.stack .peek-r { right: 0; transform: rotate(6deg); }
.stack .phone { position: relative; margin: 0 auto; }
.hero-visual figcaption {
  margin-top: 20px;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* Phone mock */

.phone {
  width: 62%;
  min-width: 216px;
  max-width: 290px;
  aspect-ratio: 9 / 17;
  background: var(--bg);
  border: 10px solid #1b1c22;
  border-radius: 44px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--sans);
  container-type: inline-size;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px 0;
  font-size: 11px;
  font-weight: 600;
}
.phone-status span:last-child { letter-spacing: 1px; }
.phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 14px 0;
}
.phone-bar b { font-size: 15px; font-weight: 600; }
.phone-bar span { font-size: 12px; font-weight: 600; color: var(--primary); }
.phone-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
}
.phone-body .post { border-radius: 4px; }
.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px 0 0;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: #c5c6d0;
}
.dots i:first-child { width: 16px; background: var(--primary); }
.phone-cta {
  margin: 10px 12px 14px;
  padding: 9px 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* Steps */

.steps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 840px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.step { counter-increment: step; }
.step-art {
  height: 236px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 20px;
}
.step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
}
.step h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font: 600 1rem/1 var(--display);
  flex: none;
}
.step p { margin: 8px 0 0; color: var(--ink-2); }

.art-photos {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 6px;
}
.art-photos span {
  aspect-ratio: 1;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}
.art-photos .picked {
  position: relative;
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.art-photos .picked::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='%23fff' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.art-form { width: 78%; display: grid; gap: 8px; }
.field {
  position: relative;
  border: 1px solid #9a9ba6;
  border-radius: 8px;
  padding: 9px 10px 7px;
  font-size: 0.8125rem;
  line-height: 1.2;
  white-space: nowrap;
}
.field span { display: block; overflow: hidden; text-overflow: ellipsis; }
.field b {
  position: absolute;
  top: -0.6em;
  line-height: 1.2;
  left: 8px;
  padding: 0 4px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.6875rem;
  font-weight: 600;
}
.field.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.field.on b { color: var(--primary); }
.art-form .go {
  margin-top: 4px;
  padding: 8px 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.art-pick { display: flex; align-items: center; gap: 14px; }
.art-pick .post { width: 112px; border-radius: 6px; }
.art-pick .actions { display: grid; gap: 8px; width: 96px; }
.art-pick .actions span {
  padding: 8px 0;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  background: var(--primary);
  color: #fff;
}
.art-pick .actions span + span {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

/* Examples */

.examples {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72%, 300px);
  gap: 16px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  list-style: none;
}
.examples li { scroll-snap-align: start; }
@media (min-width: 840px) {
  .examples {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}
.examples-note { margin: 16px 0 0; font-size: 0.9375rem; color: var(--ink-2); }

/* Mock posts. Sizes are in cqw so a post scales as one picture. */

.post {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  container-type: inline-size;
  background: #ccc;
  color: #fff;
  font-family: var(--sans);
  line-height: 1.15;
}
.post .ph {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ph-coffee { background-image: url(/assets/img/coffee.svg); }
.ph-stage { background-image: url(/assets/img/stage.svg); }
.ph-shop { background-image: url(/assets/img/shop.svg); }
.ph-leaves { background-image: url(/assets/img/leaves.svg); }
.ph-flowers { background-image: url(/assets/img/flowers.svg); }
.ph-bread { background-image: url(/assets/img/bread.svg); }
.ph-pottery { background-image: url(/assets/img/pottery.svg); }

.post .brand {
  font-size: 2.3cqw;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.post .t { margin: 0; font-weight: 800; }
.post .sub { font-size: 3.1cqw; line-height: 1.3; }
.post .meta { font-size: 2.7cqw; font-weight: 700; line-height: 1.3; }
.post .pill {
  display: inline-block;
  padding: 1.7cqw 3.6cqw;
  border-radius: 999px;
  font-size: 2.6cqw;
  font-weight: 700;
  white-space: nowrap;
}

/* Bottom card */
.l-card .ph { bottom: 40%; }
.l-card .panel {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  padding: 6cqw 7cqw;
  display: flex;
  flex-direction: column;
  background: var(--panel, #f3eee6);
  color: var(--panel-ink, #1e2230);
}
.l-card .brand { color: var(--accent, #c4503a); }
.l-card .t { font-size: 7.6cqw; line-height: 1.02; margin-top: 1.6cqw; }
.l-card .sub { margin-top: 1.6cqw; max-width: 80%; }
.l-card .foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3cqw;
}
.l-card .pill { background: var(--accent, #c4503a); color: var(--pill-ink, #fff); }

/* Date tab */
.l-tab .ph { bottom: 34%; }
.l-tab .tab {
  position: absolute;
  top: 0;
  left: 6cqw;
  padding: 3.6cqw 5cqw 3.2cqw;
  background: var(--accent, #4fc3f7);
  color: var(--tab-ink, #0d1424);
  font: 600 6.6cqw/1.05 var(--display);
}
.l-tab .panel {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  padding: 6cqw 7cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--panel, #0f1422);
}
.l-tab .t { font: 700 9cqw/1.05 "Playfair Display", Georgia, serif; }
.l-tab .meta { margin-top: 2cqw; font-weight: 600; opacity: 0.92; }

/* Masthead */
.l-mast .ph { top: 36%; }
.l-mast .band {
  position: absolute;
  inset: 0 0 auto;
  height: 36%;
  padding: 5.6cqw 7cqw;
  display: flex;
  align-items: center;
  background: #2b1a13;
  border-bottom: 1.4cqw solid #e3a44b;
}
.l-mast .t {
  font: 400 10.4cqw/0.98 Anton, Impact, sans-serif;
  color: #f6e7cf;
}

/* Centre poster */
.l-center .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 8, 0.45);
}
.l-center .inner {
  position: absolute;
  inset: 0;
  padding: 9cqw 8cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.l-center .t { margin-top: 12cqw; font-size: 11cqw; line-height: 1.12; font-weight: 800; }
.l-center .rule { width: 9cqw; height: 0.8cqw; margin: 4cqw 0; background: #4fc3f7; }
.l-center .meta { margin-top: auto; }
.l-center .pill { margin-top: 3cqw; background: #4fc3f7; color: #0d1424; }

/* Sticker badge */
.l-badge .badge {
  position: absolute;
  top: 6cqw;
  right: 6cqw;
  width: 30cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: #d9534f;
  border: 1.2cqw solid #7a1f1c;
  transform: rotate(10deg);
  font: 600 5.6cqw/1 var(--display);
}
.l-badge .card {
  position: absolute;
  left: 6cqw;
  right: 14cqw;
  bottom: 6cqw;
  padding: 5cqw 5.6cqw;
  background: #fff8ee;
  color: #1e2230;
}
.l-badge .brand { color: #2f6b3a; }
.l-badge .t { font-size: 7.2cqw; line-height: 1.02; margin: 1.4cqw 0 2cqw; }

/* Fade */
.l-fade .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 38%, rgba(26, 14, 6, 0.9) 82%);
}
.l-fade .inner {
  position: absolute;
  inset: auto 0 0;
  padding: 0 7cqw 7cqw;
}
.l-fade .t { font: 600 9.6cqw/1.02 var(--display); }
.l-fade .sub { margin-top: 2cqw; max-width: 82%; }
.l-fade .foot {
  margin-top: 4cqw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3cqw;
}
.l-fade .pill { background: #f2b84b; color: #2a1a0a; }

/* Benefits */

.benefits {
  display: grid;
  gap: 32px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .benefits { grid-template-columns: repeat(3, 1fr); }
}
.benefits svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  margin-bottom: 14px;
}
.benefits p { margin: 6px 0 0; color: var(--ink-2); }

/* FAQ */

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: translateY(-3px) rotate(45deg);
  margin-right: 4px;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 40rem; }

/* Beta call to action */

.beta {
  padding: 48px 24px;
  border-radius: 28px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  text-align: center;
}
.beta h2 { max-width: 20ch; margin: 0 auto; }
.beta p { margin: 12px auto 0; max-width: 34rem; }
.beta .btn { margin-top: 28px; }
@media (min-width: 720px) {
  .beta { padding: 72px 48px; }
}

/* Footer */

.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.site-footer .wordmark { font-size: 1.25rem; }
.site-footer .wordmark svg { width: 20px; height: 20px; }
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.site-footer a:not(.wordmark) { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.site-footer a:not(.wordmark):hover { color: var(--ink); text-decoration: underline; }
.site-footer small { color: var(--ink-2); font-size: 0.9375rem; }

/* Text pages: support, privacy, 404 */

.page { padding: 32px 0 80px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem); margin-bottom: 24px; }
.prose { color: var(--ink-2); }
.prose p, .prose ul { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: 0.3em; }
.prose h2 {
  margin: 2em 0 0.6em;
  color: var(--ink);
  font: 600 1.25rem/1.3 var(--sans);
  letter-spacing: 0;
}
.prose a { overflow-wrap: anywhere; }
.page .lead { font-size: 1.1875rem; color: var(--ink-2); margin: 0 0 32px; }
.page .btn { margin-top: 8px; }
