/* Petal Picker, petalpicker.app
   Plain static styles. No build step, no dependencies, no web fonts: the
   type is the system's own serif and rounded faces, as in the app. */

:root {
  /* The game's paper and ink */
  --paper: #f3ede1;
  --paper-edge: #e2d8c4;
  --paper-lift: #faf6ee;
  --ink: #4a4238;
  --muted: #756959;      /* the app's inkSoft, darkened to read at body size */
  --rule: #ddd2bd;

  /* A few of the twelve petal hues */
  --crimson: #e24e5b;
  --crimson-deep: #c23a48;
  --coral: #f07b4a;
  --amber: #f2b33d;
  --cream: #f6e5c8;
  --spring: #79d85a;
  --teal: #4fb8a5;
  --sky: #6fa8dc;
  --violet: #8a6fd1;
  --orchid: #ce6bb4;
  --rose: #f095b8;
  --plum: #6e2f55;

  --ok: #2f7d55;
  --err: #b3261e;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1040px;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(74, 66, 56, 0.08), 0 8px 24px rgba(74, 66, 56, 0.10);

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--crimson-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 20px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 237, 225, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { border-radius: 7px; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 15px;
}
.nav-links a { color: var(--muted); padding-block: 6px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 20px 88px;
  background:
    radial-gradient(ellipse at 50% 38%, var(--paper-lift) 0%, var(--paper) 55%, var(--paper-edge) 130%);
}
.hero > *:not(.drift) { position: relative; z-index: 1; }
.hero .icon {
  display: block;
  margin: 0 auto;
  width: 132px;
  height: 132px;
  border-radius: 29px;
  box-shadow: 0 2px 4px rgba(74, 66, 56, 0.12), 0 14px 34px rgba(74, 66, 56, 0.20);
}
.wordmark {
  margin: 30px auto 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
}
.wordmark .second {
  color: var(--crimson);
  /* Offset as on the app's title screen. */
  margin-left: 0.58em;
}
.tagline {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 3.4vw, 26px);
}
.subhead {
  max-width: 34em;
  margin: 14px auto 0;
  color: var(--muted);
  text-wrap: pretty;
}
.cta-row { margin-top: 34px; display: flex; justify-content: center; }

/* The App Store badge, drawn rather than linked while there is no listing. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  line-height: 1.1;
}
.badge:hover { text-decoration: none; background: #3a332b; }
.badge .apple { width: 26px; height: 26px; }
.badge .small { display: block; font-size: 11px; letter-spacing: 0.02em; }
.badge .big { display: block; font-size: 20px; font-weight: 600; }
/* Inside a pricing plan, where it sits under the list rather than centred. */
.plan-badge { align-self: flex-start; margin-top: 22px; }

/* A few petals drifting down behind the hero, the way the level-clear
   sweep does in the game. */
.drift { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.drift svg {
  position: absolute;
  top: -60px;
  width: 30px;
  height: 44px;
  opacity: 0.85;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translate(0, 0) rotate(0deg) scaleX(1); }
  25%  { transform: translate(24px, 25vh) rotate(90deg) scaleX(0.4); }
  50%  { transform: translate(-10px, 50vh) rotate(180deg) scaleX(1); }
  75%  { transform: translate(20px, 75vh) rotate(270deg) scaleX(0.35); }
  100% { transform: translate(0, 110vh) rotate(360deg) scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .drift { display: none; }
}

/* ---------- Sections ---------- */
section { padding-block: 84px; }
section + section { border-top: 1px solid var(--rule); }
.section-title {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
  text-wrap: balance;
}
.section-sub {
  max-width: 36em;
  margin: 12px auto 44px;
  text-align: center;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Previews ---------- */
.previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px 28px;
  align-items: start;
}
.preview { margin: 0; text-align: center; }
.phone {
  max-width: 260px;
  margin: 0 auto;
  padding: 9px;
  border-radius: 42px;
  background: #2d2822;
  box-shadow: var(--shadow);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  background: var(--paper);
}
.preview figcaption {
  max-width: 260px;
  margin: 14px auto 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- How it plays ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  padding: 26px 24px 22px;
  border-radius: var(--radius);
  background: var(--paper-lift);
  border: 1px solid var(--rule);
}
.step .num::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--crimson);
  color: #fff;
  font-weight: 600;
}
.step h3 { margin: 14px 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Feature list ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 34px 40px;
}
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; }
.feature .icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { margin: 6px 0 4px; font-size: 18px; grid-column: 2; }
.feature p { margin: 0; color: var(--muted); grid-column: 2; }
.feature .icon { grid-row: span 2; }
.tint-crimson { color: var(--crimson-deep); background: #f9e0e1; }
.tint-amber   { color: #a8701a; background: #fbecc9; }
.tint-teal    { color: #2e7f71; background: #d8efe9; }
.tint-violet  { color: #6a52b3; background: #e7e0f6; }
.tint-orchid  { color: #9c4486; background: #f5dff0; }
.tint-sky     { color: #3f78ad; background: #dfeaf6; }

/* ---------- Flowers ---------- */
.flowers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  font-weight: 500;
}
.chip svg { width: 26px; height: 26px; }
.palette {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 34px;
}
.palette span { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(74, 66, 56, 0.12); }
.palette-note { text-align: center; color: var(--muted); font-size: 15px; margin: 12px 0 0; }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--paper-lift);
  border: 1px solid var(--rule);
}
.plan.featured { border: 2px solid var(--crimson); box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; }
.price { margin-top: 6px; font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.plan ul { margin: 18px 0 0; padding: 0; list-style: none; }
.plan li { position: relative; padding: 6px 0 6px 26px; }
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 11px;
  height: 11px;
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);
  background: var(--crimson);
}
.plan .fine { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.promise {
  max-width: 40em;
  margin: 40px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 40px 56px;
  border-top: 1px solid var(--rule);
  background: var(--paper-edge);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-bottom: 12px;
}
.footer-links a { color: var(--ink); }

/* ---------- Inner pages: support, privacy, terms ---------- */
.page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.back { display: inline-block; margin-bottom: 24px; font-size: 15px; }
.page h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 44px);
  line-height: 1.1;
}
.page h2 {
  margin: 44px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.25;
}
.page h3 { margin: 26px 0 6px; font-size: 18px; }
.page p, .page li { text-wrap: pretty; }
.page code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  font-size: 0.9em;
}
.dates { color: var(--muted); font-size: 15px; }
.table-wrap { overflow-x: auto; margin: 14px 0; }
.page table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.page th, .page td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.page th { font-weight: 600; background: var(--paper-lift); }

/* Support */
.intro { color: var(--muted); }
.faq { margin: 34px 0 10px; }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding-block: 4px;
}
.faq summary {
  cursor: pointer;
  padding-block: 12px;
  font-weight: 600;
  list-style-position: outside;
}
.faq details p { margin: 0 0 14px; color: var(--muted); }

.support-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper-lift);
  border: 1px solid var(--rule);
}
.form-group { display: grid; gap: 6px; }
.form-group label { font-weight: 600; font-size: 15px; }
.support-form input, .support-form textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.support-form textarea { resize: vertical; min-height: 140px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.submit-button {
  justify-self: start;
  padding: 12px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--crimson-deep);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.submit-button:hover { background: #a92f3c; }
.submit-button:disabled { opacity: 0.6; cursor: default; }
.form-status { min-height: 1.4em; font-size: 15px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.recaptcha-note { font-size: 13px; color: var(--muted); margin: 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 52px; padding-bottom: 64px; }
  section { padding-block: 64px; }
  .support-form { padding: 20px; }
}
