/* Dear Robin — paper robin palette. No web fonts or third-party requests: the site keeps
   the same privacy promise as the app. */

:root {
  --paper: #fbf5ee;
  --card: #ffffff;
  --ink: #2a221d;
  --muted: #6e5d52;
  --robin: #c8482e;
  --robin-soft: #f6dcd3;
  --bark: #6e5848;
  --line: #eadfd3;
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1714;
    --card: #26201c;
    --ink: #f3ece4;
    --muted: #b5a698;
    --robin: #e2674a;
    --robin-soft: #3a2620;
    --bark: #c9b3a1;
    --line: #3a312b;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

a { color: var(--robin); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 600 20px/1 var(--serif); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.lang { font-size: 15px; color: var(--muted); text-decoration: none; border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 30px 0 70px; }
.hero h1 { font: 600 clamp(40px, 6.4vw, 66px)/1.03 var(--serif); margin: 0 0 18px; letter-spacing: -0.5px; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 26px; max-width: 30em; }
/* Two iPhones fanned out over a soft robin-pink disc, the robin flying in above them.
   Everything is placed in percentages of the box, so it scales as one picture. */
.hero-art { position: relative; justify-self: center; width: min(100%, 600px); aspect-ratio: 560 / 610; }
.hero-art .blob { position: absolute; left: 6%; top: 14%; width: 88%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fbe8e0, var(--robin-soft) 70%); }
.hero-art .hero-robin { position: absolute; left: 0; top: 0; width: 25%; height: auto;
  filter: drop-shadow(0 10px 14px rgba(70, 40, 25, 0.18)); }
.hero-art .hero-back { position: absolute; left: 13%; top: 25%; width: 38%; transform: rotate(-7deg); }
.hero-art .hero-front { position: absolute; left: 46%; top: 16%; width: 42%; transform: rotate(5deg); }
/* The promises: one quiet line, separated by small robin-red dots. */
.pills { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 0;
  font-size: 15px; color: var(--muted); }
.pills li + li::before { content: "·"; color: var(--robin); font-weight: 700; margin: 0 10px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--robin); margin: 0 0 10px; }

/* Apple's badge at its recommended height; before launch it has no link and a quiet note. */
.store-badge { display: inline-flex; align-items: center; gap: 14px; }
.store-badge img { display: block; height: 54px; width: auto; }
.store-badge.soon span { font-size: 14px; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Devices, drawn in CSS around real screenshots. Percentages in border-radius are of width
   / height, so the shapes keep their proportions at any size. The iPhone gets its rounded
   titanium edge, a Dynamic Island and side buttons; the iPad an even bezel and a camera. */
.device { position: relative; background: #1d1916;
  box-shadow: inset 0 0 0 1.5px #5a4e46, inset 0 0 0 4px #2a2420, 0 34px 60px -22px rgba(70, 40, 25, 0.38),
    0 10px 24px rgba(70, 40, 25, 0.12); }
.device .screen { position: relative; overflow: hidden; background: #fff; }
.device img { display: block; width: 100%; height: auto; }

.device.iphone { padding: 3.4%; border-radius: 17% / 7.9%; }
.device.iphone .screen { border-radius: 14% / 6.5%; }
.device.iphone .screen::after { content: ""; position: absolute; top: 1.15%; left: 50%; transform: translateX(-50%);
  width: 29%; height: 3.9%; border-radius: 999px; background: #000; }
.device.iphone::before, .device.iphone::after { content: ""; position: absolute; width: 1.4%; border-radius: 2px; background: #3b332e; }
/* Two volume buttons on the left, one side button on the right. */
.device.iphone::before { left: -1.2%; top: 19%; height: 15%; background: linear-gradient(#3b332e 0 42%, transparent 42% 58%, #3b332e 58%); }
.device.iphone::after { right: -1.2%; top: 26%; height: 11%; }

.device.ipad { padding: 3.2%; border-radius: 6.5% / 4.9%; }
.device.ipad .screen { border-radius: 3.6% / 2.7%; }
.device.ipad::after { content: ""; position: absolute; top: 1.2%; left: 50%; width: 1.3%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: #3b332e; }

/* A section iPhone shows the top (or, for the keyboard, the bottom) of its screen and fades out. */
.iphone.crop .screen { aspect-ratio: 600 / 900; }
.iphone.crop img { height: 100%; object-fit: cover; }
.iphone.crop.top img { object-position: top; }
.iphone.crop.top { -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.iphone.crop.bottom img { object-position: bottom; }
.iphone.crop.bottom .screen::after { display: none; }
.iphone.crop.bottom { -webkit-mask-image: linear-gradient(to top, #000 72%, transparent);
  mask-image: linear-gradient(to top, #000 72%, transparent); }

/* Alternating feature sections: a phone column and a text column, centred as a pair. */
.show { display: grid; grid-template-columns: 280px minmax(0, 470px); justify-content: center; gap: 72px;
  align-items: center; margin-bottom: 100px; }
.show.flip { grid-template-columns: minmax(0, 470px) 280px; }
.show.demo { grid-template-columns: 310px minmax(0, 470px); }
.show.flip .art { order: 2; }
.show h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 14px; }
.show .copy > p { font-size: 18px; color: var(--muted); margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: "♡"; position: absolute; left: 0; color: var(--robin); font-weight: 700; }

/* "How it works": a small chat that plays itself (demo.js). Generic chat colours, not any
   particular messenger's. */
.chat { position: relative; width: 310px; height: 600px; background: var(--card); border: 1px solid var(--line);
  border-radius: 30px; box-shadow: 0 30px 60px -24px rgba(70, 40, 25, 0.3); overflow: hidden;
  display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--robin-soft); color: var(--robin);
  display: grid; place-items: center; font-size: 14px; }
.chat-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: opacity 0.5s; }
.chat-body.fade { opacity: 0; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: 16px; line-height: 1.35;
  animation: pop 0.35s ease-out both; overflow-wrap: anywhere; }
.msg.in { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: var(--robin); color: #fff; border-bottom-right-radius: 6px; min-height: 1.35em; }
.msg.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px;
  vertical-align: -0.15em; background: currentColor; animation: blink 1s steps(1) infinite; }
.msg.sticker-msg { background: none; padding: 0; }
/* The message field and the Robin keyboard under it. */
.composer { padding: 8px 10px; border-top: 1px solid var(--line); }
.composer .field { display: block; min-height: 34px; padding: 7px 12px; border-radius: 17px; border: 1px solid var(--line);
  font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; }
.composer .field.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px;
  vertical-align: -0.15em; background: var(--robin); animation: blink 1s steps(1) infinite; }
.kb { --kb-bg: #d4d7dd; --kb-key: #fff; --kb-mod: #aeb3be; --kb-ink: #1d1d1f;
  background: var(--kb-bg); padding: 6px 4px 8px; color: var(--kb-ink); }
.kb-strip { display: flex; gap: 5px; overflow: hidden; padding: 2px 2px 7px; }
.kb-strip span { flex: none; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--kb-key);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.kb-strip span.on { background: #f6d9d1; color: var(--robin); box-shadow: inset 0 0 0 1px var(--robin); }
.kb-row { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.key { flex: 0 0 26px; height: 34px; display: grid; place-items: center; border-radius: 5px; background: var(--kb-key);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); font-size: 15px; transition: background 0.08s, transform 0.08s; }
.key.mod { background: var(--kb-mod); font-size: 13px; }
.key.wide { flex-basis: 40px; }
.key.space { flex: 1 1 auto; }
.key.send { background: #f6d9d1; color: var(--robin); }
.key.down { background: var(--robin); color: #fff; transform: translateY(-2px) scale(1.12); }
@media (prefers-color-scheme: dark) {
  .kb { --kb-bg: #2b2b2e; --kb-key: #5a5a5e; --kb-mod: #3d3d40; --kb-ink: #f2f2f2; }
}

/* The messenger's sticker drawer, open on the Dear Robin pack (made in the app). It takes the
   keyboard's place, as a sticker drawer does. */
.kb.away { display: none; }
.tray { display: none; background: var(--card); border-top: 1px solid var(--line); }
.tray.show { display: block; animation: rise 0.3s ease-out both; }
.tray-tabs { display: flex; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tray-tabs span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; }
.tray-tabs span.on { background: var(--paper); color: var(--ink); font-weight: 600; }
.tray-tabs img { width: 18px; height: 18px; border-radius: 5px; }
.tray-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 22px; background: var(--bg); border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(70, 40, 25, 0.14); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; font: 700 15px/1.1 var(--sans); text-align: center; padding: 6px;
  transition: transform 0.15s; overflow-wrap: anywhere; }
.tile i { font-style: normal; font-size: 14px; color: #f0506e; }
.tile .grad { background: linear-gradient(135deg, #ffaa3c, #f0506e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile .rainbow { background: linear-gradient(90deg, #eb4034, #f5911e, #f0c81e, #46af50, #2d87f0, #8c50dc);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile.down { transform: scale(0.9); }
.msg.sticker-msg .tile { width: 118px; font-size: 19px; }
.composer { display: flex; align-items: center; gap: 8px; }
.composer .field { flex: 1; }
.sticker-btn { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  color: var(--muted); transition: background 0.1s, color 0.1s; }
.sticker-btn.down { background: var(--robin); color: #fff; }

@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .msg, .tray, .tile, .chat-body { animation: none; transition: none; }
}

/* Works with WhatsApp: three short cards, no device. */
.whatsapp { text-align: center; margin-bottom: 70px; }
.whatsapp h2 { font-size: clamp(30px, 4vw, 40px); }
.wa-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 14px; text-align: left; }
.wa-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.wa-card h3 { margin: 0 0 6px; font: 600 20px/1.3 var(--serif); }
.wa-card h3::before { content: "♡ "; color: var(--robin); }
.wa-card p { margin: 0; color: var(--muted); font-size: 16px; }
.whatsapp .note { max-width: 640px; margin: 0 auto; }
footer .trademark { margin: 14px 0 0; font-size: 12px; opacity: 0.8; }

/* The no-subscription band */
.band { text-align: center; background: var(--robin); color: #fff; border-radius: 28px; padding: 54px 28px;
  margin-bottom: 70px; position: relative; overflow: hidden; }
.band h2 { color: #fff; font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 10px; }
.band p { margin: 0 auto; max-width: 560px; font-size: 18px; opacity: 0.92; }
.band::before, .band::after { content: "✿ ♡ ★"; position: absolute; font-size: 90px; opacity: 0.12; letter-spacing: 20px; }
.band::before { left: -20px; top: -20px; }
.band::after { right: -20px; bottom: -30px; }

.price { position: relative; }
.badge { position: absolute; top: -12px; right: 18px; background: var(--robin); color: #fff; font-size: 12px;
  font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* Try it */
.try { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  margin-bottom: 100px; }
.try h2 { margin-top: 0; }
.try input { width: 100%; font: 18px var(--sans); padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.styles { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.styles button { width: 100%; text-align: left; font: 20px var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; cursor: pointer;
  display: flex; justify-content: space-between; gap: 12px; align-items: center; overflow-wrap: anywhere; }
.styles button span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.styles button.copied span { color: var(--robin); }

/* Sections */
h2 { font: 600 30px/1.2 var(--serif); margin: 0 0 14px; }
section { margin-bottom: 60px; }

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.price.pro { border-color: var(--robin); }
.price h3 { margin: 0; font: 600 22px var(--serif); }
.price .amount { font: 600 30px var(--serif); margin: 6px 0 10px; }
.price ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 16px; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px;
  margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.press { display: flex; flex-wrap: wrap; gap: 12px; }
.press a { border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; text-decoration: none; background: var(--card); }

/* Help page */
.help-intro h1 { font: 600 clamp(36px, 5.5vw, 54px)/1.05 var(--serif); margin: 0 0 14px; letter-spacing: -0.5px; }
.help-intro .lead { font-size: 19px; color: var(--muted); margin: 0; max-width: 34em; }

/* Contact form */
.contact form { display: grid; gap: 14px; max-width: 640px; }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.contact input, .contact textarea { font: 16px var(--sans); color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 400; }
.contact textarea { resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--robin); outline-offset: 1px; }
.contact .send { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contact button { font: 600 16px var(--sans); color: #fff; background: var(--robin); border: 0; border-radius: 12px;
  padding: 12px 22px; cursor: pointer; }
.contact button:disabled { opacity: 0.6; cursor: default; }
.contact .status { font-size: 15px; color: var(--muted); }
.contact .status.good { color: #2f7d4f; }
.contact .status.bad { color: var(--robin); }
.contact .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) { .contact .row { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); padding: 26px 0 50px; color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }

/* Privacy policy */
.policy { max-width: 720px; padding-bottom: 60px; }
.policy h1 { font: 600 40px/1.1 var(--serif); }
.policy h2 { margin-top: 44px; }
.policy h3 { font: 600 20px var(--serif); margin: 28px 0 6px; }
.policy blockquote { margin: 0; padding: 14px 18px; background: var(--robin-soft); border-radius: 12px; }
.policy hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 10px; padding-top: 10px; }
  .hero-art { order: -1; width: min(100%, 380px); margin-bottom: 6px; }
  .show, .show.flip, .show.demo { grid-template-columns: 1fr; gap: 28px; margin-bottom: 72px; }
  .show.flip .art { order: 0; }
  .show .art { width: min(72%, 260px); justify-self: center; }
  .wa-cards { grid-template-columns: 1fr; }
  .show.demo .art { width: auto; }
}

/* Apple's own bezels (pre-rendered images, see Website/tools/build_device_images.py). They
   replace the CSS-drawn frames above when present. */
.bezel img { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 34px rgba(70, 40, 25, 0.28)); }
.bezel.crop { aspect-ratio: 640 / 1000; overflow: hidden; }
/* No shadow on cropped devices: the crop would cut it into a visible box. */
.bezel.crop img { height: 100%; object-fit: cover; filter: none; }
.bezel.crop.top img { object-position: top; }
.bezel.crop.top { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.bezel.crop.bottom img { object-position: bottom; }
.bezel.crop.bottom { -webkit-mask-image: linear-gradient(to top, #000 70%, transparent);
  mask-image: linear-gradient(to top, #000 70%, transparent); }
