/* Tendlets website. Colours and fonts match the app (see docs/brand/README.md). */

@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(assets/fonts/fredoka-600.woff) format("woff"); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url(assets/fonts/fredoka-700.woff) format("woff"); }
@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url(assets/fonts/nunito-600.woff) format("woff"); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(assets/fonts/nunito-800.woff) format("woff"); }

:root {
  --ink: #3A2D4D;
  --soft: #6B5E7D;
  --cream: #FFF8F1;
  --pink: #C93A73;
  --pink-soft: #FFE4EF;
  --pink-band: #FFF0F5;
  --lilac-band: #F4F0FF;
  --line: #F0E2EC;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: Nunito, system-ui, sans-serif; font-weight: 600; color: var(--ink); background: var(--cream); line-height: 1.55; }
h1, h2, h3 { font-family: Fredoka, system-ui, sans-serif; font-weight: 700; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 .7em; }
a { color: var(--pink); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.center { text-align: center; }
.sub { text-align: center; color: var(--soft); margin-bottom: 28px; }
section { padding: 56px 0; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px; border-radius: 12px; z-index: 10; }
.skip:focus { left: 8px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

/* Header and footer */
.nav { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.nav-logo { height: 46px; width: auto; display: block; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-weight: 800; }
.nav nav a { color: var(--ink); text-decoration: none; }
.nav nav a:hover { color: var(--pink); }
.foot { background: var(--pink-band); padding: 40px 0; margin-top: 40px; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-logo { height: 40px; width: auto; display: block; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 800; }
.foot nav a { color: var(--ink); }
.foot p { margin: 0 0 0 auto; color: var(--soft); }

/* Buttons. "Coming soon" shows until launch: remove class="prelaunch" from <body> to switch. */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; font: 800 17px Nunito, sans-serif; padding: 14px 24px; text-decoration: none; background: var(--pink); color: #fff; border-radius: 99px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.store { background: var(--ink); }
.store svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.store .when-soon { display: none; }
.prelaunch .store { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #E2D2DC; pointer-events: none; }
.prelaunch .store .when-soon { display: inline; }
.prelaunch .store .when-live { display: none; }
.note { font-weight: 800; color: var(--soft); font-size: 15px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 28px; }
.hero-logo { width: min(440px, 100%); height: auto; display: block; margin: 0 0 18px; }
.lead { font-size: 20px; color: var(--soft); max-width: 34em; }
.hero-art { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.hero-art::before { content: ""; position: absolute; inset: 6% 4%; background: var(--pink-soft); border-radius: 46% 54% 48% 52%; }
.float { position: absolute; width: 120px; height: auto; z-index: 2; }
.float.a { left: 0; top: 30px; }
.float.b { right: -6px; top: 150px; width: 110px; }
.float.c { left: 14px; bottom: 10px; width: 104px; }
/* Each pet moves its own way: the Squelly wobbles, the Sproutle sways, the Froad hops. */
.float { transform-origin: 50% 88%; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.float.a { animation-name: wobble; animation-duration: 2.6s; }
.float.b { animation-name: sway; animation-duration: 3.4s; animation-delay: -1.2s; }
.float.c { animation-name: hop; animation-duration: 3.2s; animation-delay: -.6s; }
@keyframes wobble {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  30% { transform: translateY(-8px) scale(.95, 1.06); }
  55% { transform: translateY(0) scale(1.07, .93); }
  75% { transform: translateY(0) scale(.98, 1.02); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}
@keyframes hop {
  0%, 55%, 100% { transform: translateY(0) scale(1, 1); }
  63% { transform: translateY(0) scale(1.1, .88); }
  76% { transform: translateY(-26px) scale(.94, 1.07); }
  88% { transform: translateY(0) scale(1.08, .92); }
  94% { transform: translateY(0) scale(.99, 1.01); }
}
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* The phone showing the app */
.phone { width: 290px; background: #2B2238; border-radius: 44px; padding: 12px; position: relative; z-index: 1; }
.screen { background: var(--cream); border-radius: 34px; overflow: hidden; padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.ph-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ph-top b { font: 700 24px Fredoka, sans-serif; display: block; }
.ph-top small { color: var(--soft); }
.ph-spark { background: #FFF1BF; color: #7A5A00; border-radius: 99px; padding: 4px 10px; font-weight: 800; font-size: 14px; }
.ph-meters { display: flex; gap: 10px; }
.ph-meters i { flex: 1; height: 9px; border-radius: 9px; background: linear-gradient(90deg, var(--c) var(--v), #EDE3EA var(--v)); }
.ph-bubble { background: #fff; border-radius: 16px; padding: 10px 12px; font-weight: 800; font-size: 13px; text-align: center; }
.room { width: 100%; height: auto; border-radius: 18px; display: block; }
.ph-tasks { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-tasks span { border: 2px solid #EBDDD3; background: #fff; border-radius: 99px; padding: 5px 10px; font-size: 12px; font-weight: 800; }
.ph-tasks .done { background: #D4F4E4; border-color: #9ED9BC; color: #1E6E4C; }
.ph-tabs { display: flex; justify-content: space-around; padding-top: 8px; border-top: 2px solid #EBDDD3; }
.ph-tabs i { width: 22px; height: 22px; border-radius: 7px; background: #E6DDEA; }
.ph-tabs i.on { background: var(--pink); }

/* Sections and cards */
.band-1 { background: var(--pink-band); border-radius: 48px 48px 0 0; padding: 64px 0; }
.band-2 { background: var(--lilac-band); border-radius: 0 0 48px 48px; padding: 64px 0; }
.band-1 h2, .band-2 h2, #how h2, #faq h2 { text-align: center; }
.grid { display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; }
.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 2px solid var(--line); border-radius: 28px; padding: 22px; }
.tint { background: var(--tint); border-color: transparent; }
.pet { width: 150px; height: auto; display: block; margin: 0 auto; }
.petcard { text-align: center; position: relative; }
.loves { font-weight: 800; color: var(--pink); margin-bottom: 4px; }
.quote { color: var(--soft); font-style: italic; }
.tag { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: #FFE8D6; color: #9A4A12; }
.step { position: relative; text-align: center; }
.step .pet { width: 130px; }
.num { position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 18px Fredoka, sans-serif; background: var(--pink); color: #fff; }
.wide { display: flex; align-items: center; gap: 28px; }
.wide .pet { width: 170px; flex: none; margin: 0; }
.season { background: #FFF1E2; border-color: transparent; }
.pair + .pair { padding-top: 0; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.qa summary { font: 600 20px Fredoka, sans-serif; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 10px; height: 10px; margin: 0 6px 4px 0; border-right: 3px solid var(--pink); border-bottom: 3px solid var(--pink); transform: rotate(45deg); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
@media (prefers-reduced-motion: reduce) { .qa summary::after { transition: none; } }
.qa p { margin: 10px 0 0; color: var(--soft); }
.get { text-align: center; }
.get .stores { justify-content: center; }

/* Support and legal pages */
.page { max-width: 760px; padding-top: 24px; }
.page h1 { font-size: clamp(32px, 4.4vw, 46px); }
.page h2 { font-size: 26px; margin-top: 1.4em; }
.page h3 { font-size: 20px; margin-top: 1.2em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }
.updated { color: var(--soft); }
.callout { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 18px 20px; margin: 18px 0; }
.page-pet { width: 120px; float: right; margin: 0 0 10px 16px; }

/* Forms (the delete-your-account page) */
.delete-flow { margin: 16px 0; }
.delete-flow section { padding: 0; }
.delete-flow h3 { margin-top: 0; outline: none; }
.delete-flow form { display: grid; gap: 10px; }
.delete-flow label { font-weight: 800; }
.delete-flow input[type=email], .delete-flow input[inputmode] { font: 600 17px Nunito, sans-serif; color: var(--ink); padding: 14px 18px; border: 2px solid #E2D2DC; border-radius: 99px; background: #fff; min-width: 0; }
.delete-flow input[inputmode] { letter-spacing: 6px; font-size: 22px; max-width: 220px; }
.delete-flow .btn { justify-self: start; }
.delete-flow .btn:disabled { opacity: .6; cursor: default; }
.btn.danger { background: #B42318; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600 !important; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pink); }
.link-button { background: none; border: 0; padding: 8px 0; font: 800 15px Nunito, sans-serif; color: var(--pink); text-decoration: underline; cursor: pointer; }
.status { margin: 12px 0 0; font-weight: 800; color: #B42318; min-height: 1.5em; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr 1fr; }
  .nav nav a:not(:last-child) { display: none; }
  .wide { flex-direction: column; text-align: center; }
  .foot p { margin: 0; }
}
@media (max-width: 560px) {
  .three { grid-template-columns: 1fr; }
  .nav-logo { height: 36px; }
  .hero-logo { display: none; }
  .float.a, .float.c { display: none; }
  .float.b { width: 84px; right: -8px; top: 120px; }
  .page-pet { width: 90px; }
}
