/* Pinuto: the app's own world on the web. Palette « Lin & Encre » (DECISIONS D03, D38), the eight
   signature colors (D20), a rounded face for the app's SF Rounded. Light and dark follow the system. */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --linen: #f6f2ea;
  --paper: #ffffff;
  --ink: #1f1d24;
  --ink-soft: #5c5866;
  --line: #e4ded3;
  --accent: #ff5a00;
  --accent-ink: #b23e1f; /* tangerine text on linen, 5.2:1 */
  --accent-display: #db4c00; /* tangerine for display type on linen, 3.7:1 (large text) */
  --on-accent: #1f1d24;
  --night: #17151c;
  --tangerine: #ff5a00;
  --cherry: #f0142d;
  --emerald: #00a86b;
  --lagoon: #0091e0;
  --cobalt: #2f5bff;
  --grape: #9a2bff;
  --flamingo: #ff2e8a;
  --lime: #b8f000;
  --radius: 28px;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 18px 40px -18px rgb(31 29 36 / 0.35), 0 2px 6px rgb(31 29 36 / 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --linen: #17151c;
    --paper: #25222c;
    --ink: #f3eee4;
    --ink-soft: #a9a3b3;
    --line: #3a3641;
    --accent-ink: #ff8a4c;
    --accent-display: #ff5a00;
    --night: #0e0c12;
    --shadow: 0 18px 40px -18px rgb(0 0 0 / 0.7), 0 2px 6px rgb(0 0 0 / 0.3);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--lime);
  color: #1f1d24;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 900;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--linen);
  font-weight: 800;
}

.skip:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--linen) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.site-nav a,
.lang {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 750;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.lang:hover {
  background: var(--paper);
}

.lang {
  border: 1.5px solid var(--line);
}

.site-header .brand + .lang {
  margin-left: auto;
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
}

/* Hero */

.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px);
  overflow: clip;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-display);
}

.hero .lead {
  margin-top: 24px;
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
}

.store {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 32px;
}

.store img {
  height: 54px;
  width: auto;
}

.store p {
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.store p strong {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.hero-device {
  position: relative;
  justify-self: center;
  width: min(100%, 330px);
}

/* A phone: the capture already carries its status bar; the frame only gives it a body. */
.phone {
  position: relative;
  margin: 0;
  padding: 10px;
  border-radius: 54px;
  background: #1f1d24;
  box-shadow: var(--shadow);
}

.phone > img,
.phone > video {
  width: 100%;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  border-radius: 44px;
  background: var(--linen);
}

.hero-device .phone {
  transform: rotate(2.5deg);
}

.video-toggle {
  position: absolute;
  right: -8px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.video-toggle svg {
  width: 18px;
  height: 18px;
}

.video-toggle [data-icon="play"],
.video-toggle.is-paused [data-icon="pause"] {
  display: none;
}

.video-toggle.is-paused [data-icon="play"] {
  display: block;
}

/* Signatures: eight pins, each with its color, shape and rhythm. */

.signatures {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--night);
  color: #f3eee4;
}

.signatures .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.signatures h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
}

.signatures p {
  margin-top: 18px;
  max-width: 32rem;
  color: #c9c3d1;
  font-size: 1.1rem;
}

.pins {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px) clamp(8px, 2vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pin {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.pin[data-signature="tangerine"] {
  --sig: var(--tangerine);
}

.pin[data-signature="cherry"] {
  --sig: var(--cherry);
}

.pin[data-signature="emerald"] {
  --sig: var(--emerald);
}

.pin[data-signature="lagoon"] {
  --sig: var(--lagoon);
}

.pin[data-signature="cobalt"] {
  --sig: var(--cobalt);
}

.pin[data-signature="grape"] {
  --sig: var(--grape);
}

.pin[data-signature="flamingo"] {
  --sig: var(--flamingo);
}

.pin[data-signature="lime"] {
  --sig: var(--lime);
}

.pin-dot {
  display: grid;
  place-items: center;
  width: clamp(60px, 8vw, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sig);
  box-shadow: 0 0 0 5px #fff, 0 10px 24px -8px rgb(0 0 0 / 0.6);
  transition: transform 0.4s var(--ease);
}

.pin-dot svg {
  width: 42%;
  height: 42%;
  fill: #fff;
}

.pin[data-signature="lime"] .pin-dot svg {
  fill: #1f1d24;
}

.pin:hover .pin-dot {
  transform: translateY(-3px);
}

.pin-name {
  font-weight: 850;
  font-size: 1rem;
  line-height: 1.2;
}

.pin-rhythm {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 8px;
}

.pin-rhythm i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #a9a3b3;
}

.pin-rhythm i.long {
  width: 22px;
}

.pin.is-playing .pin-dot {
  animation: ring 0.6s var(--ease) 3;
}

.pin.is-playing .pin-rhythm i {
  background: var(--sig);
}

@keyframes ring {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

.signatures .hint {
  margin-top: 28px;
  font-weight: 800;
  color: #f3eee4;
  font-size: 1rem;
}

/* Sections */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.section-head p {
  margin-top: 16px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* How it works: three screens, three sentences. */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 22px;
  align-content: start;
}

.steps .phone {
  width: min(100%, 280px);
}

.steps h3 {
  font-size: 1.45rem;
}

.steps p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* Uses: a strip of photos with their pins. */

.uses {
  background: var(--paper);
}

.uses-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(184px, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--line) transparent;
}

.uses-strip li {
  scroll-snap-align: start;
}

.uses-strip .phone {
  padding: 8px;
  border-radius: 44px;
}

.uses-strip .phone > img {
  border-radius: 36px;
}

.uses-strip h3 {
  margin-top: 20px;
  font-size: 1.25rem;
}

.uses-strip p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Accessibility and privacy: two plain columns of facts. */

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
}

.facts h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

.facts > div > p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.fact-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.fact-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
}

.fact-list svg {
  width: 28px;
  height: 28px;
  margin-top: 1px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact-list strong {
  display: block;
  font-weight: 850;
}

.fact-list span {
  color: var(--ink-soft);
}

.facts .more {
  display: inline-block;
  margin-top: 24px;
  font-weight: 800;
}

/* Price */

.price {
  background: var(--accent);
  color: #1f1d24;
}

.price .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.price h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.price .wrap > div > p {
  margin-top: 18px;
  font-size: 1.15rem;
  max-width: 34rem;
}

.price-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.price-points li {
  padding: 18px 22px;
  border-radius: 22px;
  background: #fff6ee;
  font-weight: 600;
}

.price-points strong {
  display: block;
  font-weight: 900;
  font-size: 1.1rem;
}

.price a {
  color: #1f1d24;
}

.price .store p {
  color: #1f1d24;
}

.price :focus-visible {
  outline-color: #1f1d24;
}

/* At night the tangerine band would glare: the paper card carries it, tangerine keeps the title. */
@media (prefers-color-scheme: dark) {
  .price {
    background: var(--paper);
    color: var(--ink);
  }
  .price h2 {
    color: var(--accent);
  }
  .price-points li {
    background: var(--linen);
  }
  .price a,
  .price .store p {
    color: var(--ink);
  }
  .price :focus-visible {
    outline-color: var(--cobalt);
  }
  /* The ink bezel would vanish on the night ground. */
  .phone {
    box-shadow: 0 0 0 1.5px var(--line), var(--shadow);
  }
}

/* FAQ */

.faq-list {
  max-width: 46rem;
  border-top: 1.5px solid var(--line);
}

.faq-list details {
  border-bottom: 1.5px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-weight: 850;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-display);
  transition: transform 0.3s var(--ease);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  padding-bottom: 22px;
  color: var(--ink-soft);
  max-width: 40rem;
}

/* Legal pages */

.legal-head {
  padding-block: clamp(40px, 6vw, 72px) 8px;
}

.legal-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.legal-head p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-weight: 700;
}

.legal {
  max-width: 46rem;
  padding-bottom: clamp(64px, 8vw, 104px);
}

.legal h2 {
  margin-top: 48px;
  font-size: 1.55rem;
}

.legal h3 {
  margin-top: 28px;
  font-size: 1.2rem;
}

.legal p,
.legal ul,
.legal table {
  margin-top: 14px;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 8px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
}

.legal th,
.legal td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th {
  width: 38%;
  padding-right: 16px;
  font-weight: 850;
}

.summary {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.summary p {
  margin: 0;
  font-weight: 850;
  font-size: 1.15rem;
}

.summary ul {
  margin-bottom: 0;
}

.todo {
  padding: 0 6px;
  border-radius: 6px;
  background: var(--lime);
  color: #1f1d24;
  font-weight: 800;
}

/* Footer */

.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
}

.site-footer small {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer nav a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 900px) {
  .hero .wrap,
  .signatures .wrap,
  .price .wrap,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-device {
    width: min(78%, 300px);
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .steps li {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 20px;
  }
  .steps h3 {
    font-size: 1.25rem;
  }
  .uses-strip {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
}

@media (max-width: 420px) {
  .pins {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pin-name {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-device .phone {
    transform: none;
  }
}
