:root {
  --background: #fffaf0;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #392f22;
  --muted: #756a5a;
  --primary: #d49a00;
  --primary-dark: #9f7000;
  --primary-soft: #fff1ba;
  --green: #5f7445;
  --green-soft: #eef3e6;
  --border: rgba(91, 72, 39, 0.13);
  --shadow: 0 22px 65px rgba(109, 76, 10, 0.13);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 214, 80, 0.25), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(111, 140, 82, 0.16), transparent 30%),
    linear-gradient(180deg, #fffdf6 0%, var(--background) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.35;
}

body::before {
  top: -100px;
  right: -90px;
  background: #f5c944;
}

body::after {
  bottom: -120px;
  left: -100px;
  background: #bfd19e;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
label:has(input:focus-visible) {
  outline: 3px solid rgba(212, 154, 0, 0.38);
  outline-offset: 3px;
}

.app-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: enter 500ms ease both;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -85px -95px auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 220, 109, 0.16);
  pointer-events: none;
}

.hidden {
  display: none !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sunflower-mark {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 14px;
  font-size: 3rem;
  filter: drop-shadow(0 10px 14px rgba(130, 86, 0, 0.14));
}

.sunflower-mark.small {
  font-size: 2.5rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8.8vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 7vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lead {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.72;
}

.story-box,
.summary-box {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid rgba(212, 154, 0, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 248, 221, 0.93), rgba(255, 255, 255, 0.95));
}

.story-box h2 {
  font-size: 1.48rem;
}

.story-box p {
  color: #675c4e;
  line-height: 1.66;
}

.story-box p:last-child {
  margin-bottom: 0;
}

.highlight,
.love-note,
.final-note {
  color: var(--text) !important;
  font-weight: 700;
}

.question-block {
  padding-top: 8px;
  text-align: center;
}

.question {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
}

.choice-area {
  position: relative;
  display: flex;
  min-height: 136px;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding-top: 4px;
}

.button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  touch-action: manipulation;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #e0a800, #bb7f00);
  box-shadow: 0 12px 28px rgba(178, 121, 0, 0.23);
}

.button.ghost {
  color: var(--text);
  background: #f4efe5;
  box-shadow: inset 0 0 0 1px rgba(74, 60, 39, 0.08);
}

.button.whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #2dbf65, #138844);
  box-shadow: 0 12px 28px rgba(19, 136, 68, 0.22);
}

.button.full {
  width: 100%;
}

.moving-button {
  position: relative;
  z-index: 2;
  min-width: 92px;
}

.attempt-text {
  min-height: 22px;
  margin: -12px 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.respect-link {
  border: 0;
  padding: 9px 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-note {
  color: var(--muted);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 8px;
}

.option-card,
.radio-card {
  position: relative;
  cursor: pointer;
}

.option-card {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  font-weight: 750;
  line-height: 1.25;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.option-card:hover {
  transform: translateY(-2px);
}

.option-card:has(input:checked) {
  border-color: rgba(212, 154, 0, 0.58);
  background: #fff7d8;
  box-shadow: 0 10px 25px rgba(180, 126, 0, 0.1);
}

.option-card input,
.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-icon {
  font-size: 1.7rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--text);
  font-weight: 750;
}

.field span small,
.char-count {
  color: var(--muted);
  font-weight: 500;
}

input[type="date"],
input[type="time"],
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
}

textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
}

.char-count {
  justify-self: end;
  font-size: 0.8rem;
}

.duration-fieldset {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.duration-fieldset legend {
  margin-bottom: 10px;
  font-weight: 800;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.radio-card::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid #c7bda9;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #fff;
}

.radio-card:has(input:checked) {
  border-color: rgba(95, 116, 69, 0.58);
  background: var(--green-soft);
}

.radio-card:has(input:checked)::before {
  border-color: var(--green);
  background: var(--green);
}

.radio-card strong,
.radio-card small {
  display: block;
}

.radio-card small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.field-error,
.form-error {
  min-height: 20px;
  margin: 8px 0 0;
  color: #a03e2b;
  font-size: 0.88rem;
}

.form-error {
  margin: 16px 0 10px;
  text-align: center;
}

.summary-box {
  display: grid;
  gap: 12px;
}

.summary-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(110, 91, 50, 0.1);
}

.summary-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.summary-item strong {
  color: var(--primary-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card {
    padding: 24px 17px;
    border-radius: 26px;
  }

  .choice-area {
    min-height: 156px;
  }

  .options-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .option-card {
    min-height: 92px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .summary-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
