/* Arrivo website styles. Layout follows the Life360 reference site; colours and words are Arrivo's own. */
:root {
  --brand: #2e7d4f; --brand-dark: #1f5e3a; --brand-soft: #e7f4ea;
  --ink: #17201d; --muted: #56635f; --line: #e2e6e3; --bg: #ffffff; --soft: #f5f6f3;
  --cream: #f3eee4; --mint: #e2f3e5; --sky: #e3f0fb; --peach: #fdece0; --lilac: #eeeafb; --sun: #ffe9a8;
  --danger: #d64045;
  --radius: 24px; --wrap: 1180px;
  --head: "Nunito", "Segoe UI", system-ui, sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; margin: 0; color: var(--ink); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; font-family: var(--head); font-weight: 800; font-size: 17px; padding: 13px 26px; border-radius: 12px; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: var(--brand-dark); }
.btn-sm { font-size: 15px; padding: 9px 18px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-in { max-width: var(--wrap); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--head); font-weight: 900; font-size: 26px; color: var(--ink); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a, .dd-btn { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; background: none; border: 0; font-family: inherit; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 6px 0; }
.nav > a.btn { color: #fff; background: var(--brand); padding: 9px 18px; }
.nav > a.btn:hover { background: var(--brand-dark); }
.nav > a.on, .dd-btn.on { color: var(--brand); }
.dd { position: relative; }
.dd-menu { display: none; position: absolute; top: 100%; left: -16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.1); padding: 8px; min-width: 300px; }
.dd:hover .dd-menu, .dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.dd-menu a:hover, .dd-menu a.on { background: var(--brand-soft); }
.dd-menu b { display: block; font-size: 15px; } .dd-menu small { color: var(--muted); font-size: 13px; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero (home) */
.hero { margin: 16px auto 0; max-width: calc(var(--wrap) + 40px); padding: 0 20px; }
.hero-in { background: var(--cream); border-radius: var(--radius); display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding: 56px 56px 0; overflow: hidden; min-height: 560px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 900; letter-spacing: -.02em; }
.hero p { font-size: 21px; margin: 18px 0 28px; max-width: 520px; }
.hero-art { position: relative; align-self: end; display: flex; justify-content: center; }
.hero-art .phone { width: 330px; margin-bottom: -120px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.18)); }
.float { position: absolute; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 10px 14px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.float b { display: block; font-size: 15px; } .float small { color: var(--muted); }
.float .av { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.float.f1 { left: -24px; top: 40px; } .float.f2 { right: -24px; top: 210px; } .float.f3 { left: -34px; bottom: 70px; }

/* Page title (feature pages) */
.ptitle { text-align: center; padding: 56px 20px 40px; }
.ptitle .kicker { font-weight: 700; font-size: 15px; color: var(--brand); }
.ptitle h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 900; letter-spacing: -.02em; margin: 8px 0 14px; }
.ptitle p { font-size: 22px; max-width: 640px; margin: 0 auto; }

/* Section heading */
.shead { text-align: center; padding: 80px 20px 36px; }
.shead h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; letter-spacing: -.02em; }
.shead p { font-size: 20px; max-width: 680px; margin: 14px auto 0; }

/* Feature cards slider (home) */
.slider { position: relative; }
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 8px; scrollbar-width: none; max-width: calc(var(--wrap) + 40px); margin: 0 auto; }
.cards::-webkit-scrollbar { display: none; }
.fcard { scroll-snap-align: start; border-radius: var(--radius); min-height: 400px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; text-decoration: none; color: var(--ink); }
.fcard h3 { font-size: 24px; font-weight: 800; position: relative; z-index: 2; }
.fcard p { margin: 6px 0 0; color: var(--muted); position: relative; z-index: 2; font-size: 15px; }
.fcard .art { position: absolute; inset: 0 0 112px 0; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.fcard .art:has(img) { align-items: flex-start; }
.fcard .art img { width: 200px; margin-top: 34px; filter: drop-shadow(0 14px 24px rgba(0,0,0,.15)); }
.stack { display: grid; gap: 10px; width: 80%; }
.note-card { background: #fff; border-radius: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.08); padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.note-card .av { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.note-card b { display: block; } .note-card small { color: var(--muted); }
.arrows { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.arrows button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 20px; cursor: pointer; }
.arrows button:first-child { background: #b9c0bd; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; padding: 0 20px; }
.plan { background: var(--soft); border-radius: 20px; padding: 26px 24px; position: relative; display: flex; flex-direction: column; }
.plan.best { background: var(--brand-soft); outline: 2px solid var(--brand); }
.plan .flag { position: absolute; top: 0; right: 0; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 0 20px 0 14px; }
.plan h3 { font-size: 24px; font-weight: 800; }
.plan .price { font-family: var(--head); font-size: 32px; font-weight: 900; margin: 10px 0 2px; }
.plan .per { color: var(--muted); font-size: 14px; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; flex: 1; }
.plan li { padding: 5px 0 5px 28px; position: relative; font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.plan .btn { justify-content: center; }
.billing { display: flex; justify-content: center; gap: 6px; margin: 0 auto 26px; background: var(--soft); border-radius: 99px; padding: 5px; width: max-content; }
.billing button { border: 0; background: transparent; padding: 9px 20px; border-radius: 99px; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink); }
.billing button.on { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.center { text-align: center; } .mt { margin-top: 28px; }

/* Feature rows (feature pages) */
.rows { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 48px 0; }
.row:nth-child(even) .row-art { order: 2; }
.row-art { border-radius: var(--radius); min-height: 460px; display: grid; place-items: center; padding: 36px 0 0; overflow: hidden; }
.row-art img { width: 280px; margin-bottom: -90px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.16)); }
.row .q { font-family: var(--head); font-weight: 800; color: var(--brand); font-size: 18px; }
.row h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; letter-spacing: -.015em; margin: 8px 0 14px; }
.row p { font-size: 18px; margin: 0 0 16px; color: #2b3532; }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tier { font-size: 14px; background: var(--soft); border-radius: 99px; padding: 5px 12px; }
.tier b { color: var(--brand-dark); }

/* Banner strip */
.strip { max-width: calc(var(--wrap) + 40px); margin: 24px auto; padding: 0 20px; }
.strip-in { background: var(--sun); border-radius: 18px; padding: 22px 28px; display: flex; align-items: center; gap: 20px; }
.strip-in .ico { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: none; }
.strip-in h3 { font-size: 24px; font-weight: 900; } .strip-in p { margin: 4px 0 0; }
.strip-in .btn { margin-left: auto; flex: none; }

/* Promo card */
.promo { max-width: calc(var(--wrap) + 40px); margin: 60px auto; padding: 0 20px; }
.promo-in { background: var(--lilac); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; overflow: hidden; }
.promo-text { padding: 48px; text-align: center; }
.promo-text .k { font-family: var(--head); font-weight: 800; font-size: 20px; }
.promo-text h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 900; margin: 12px 0 14px; }
.promo-art { align-self: stretch; min-height: 360px; display: grid; place-items: center; }

/* Photo placeholders: replaced by Seedream photos later */
.photo { position: relative; border-radius: 18px; width: 100%; height: 100%; min-height: 300px; background: linear-gradient(135deg, #cfe4d4, #e9dcc8); display: grid; place-items: center; color: #3d4a46; text-align: center; padding: 20px; }
.photo span { background: rgba(255,255,255,.85); border-radius: 12px; padding: 10px 14px; font-size: 14px; max-width: 280px; }
.photo span b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); }

.photo-img { border-radius: 18px; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
/* Rows that show a full photo instead of a phone picture */
.row-art.ph { padding: 0; display: block; }
.row-art.ph img, .row-art.ph .photo, .row-art.ph .photo-img { width: 100%; height: 100%; min-height: 460px; margin: 0; object-fit: cover; filter: none; border-radius: var(--radius); }
.promo-art .photo-img, .promo-art .photo { min-height: 360px; border-radius: 0; }

/* Big band (home) */
.band { background: var(--cream); margin-top: 90px; }
.band-in { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; min-height: 520px; overflow: hidden; }
.band h2 { font-size: clamp(40px, 5vw, 64px); font-weight: 900; letter-spacing: -.02em; }
.band p { font-size: 20px; margin: 16px 0 24px; }
.band .phone { width: 300px; justify-self: center; margin: 60px 0 -110px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.18)); }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 12px; padding: 9px 18px; text-decoration: none; }
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; } .store b { font-size: 17px; line-height: 1.1; }

/* Simple content pages */
.prose { max-width: 820px; margin: 0 auto; padding: 0 20px 60px; }
.prose h2 { font-size: 30px; font-weight: 900; margin: 40px 0 12px; }
.prose h3 { font-size: 21px; font-weight: 800; margin: 26px 0 8px; }
.prose p, .prose li { font-size: 18px; color: #2b3532; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.tile { background: var(--soft); border-radius: 20px; padding: 26px; }
.tile .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; margin-bottom: 14px; }
.tile h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.tile p { margin: 0; color: #2b3532; font-size: 16px; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice { background: #fff6dd; border: 1px solid #f0dc9c; border-radius: 14px; padding: 14px 18px; font-size: 15px; margin: 20px 0; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; padding: 0 20px 40px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-family: var(--head); font-weight: 800; font-size: 20px; padding: 16px 36px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 28px; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ul { margin: 0 0 16px; font-size: 17px; color: #2b3532; }

/* Comparison table */
.compare { max-width: 980px; margin: 0 auto; padding: 0 20px; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 600px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.compare th { font-family: var(--head); font-size: 17px; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 17%; }
.compare tr.grp td { background: var(--soft); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.yes { color: var(--brand); font-weight: 900; } .no { color: #b7bfbc; }

/* Footer */
.site-foot { background: var(--ink); color: #d7dedb; margin-top: 90px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 56px 20px 36px; display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px; }
.site-foot .brand { color: #fff; }
.foot-brand p { margin: 8px 0 22px; }
.signup label { display: block; font-weight: 700; margin-bottom: 8px; color: #fff; font-size: 15px; }
.signup div { display: flex; gap: 8px; }
.signup input { flex: 1; min-width: 0; border-radius: 10px; border: 0; padding: 10px 12px; font: inherit; font-size: 15px; }
.signup-msg { display: block; margin-top: 8px; color: #b9e6c6; min-height: 20px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.foot-cols h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.foot-cols a { display: block; color: #c4ccc9; text-decoration: none; font-size: 15px; padding: 4px 0; }
.foot-cols a:hover { color: #fff; }
.foot-base { border-top: 1px solid #2c3633; text-align: center; padding: 18px; font-size: 14px; color: #9aa5a1; }
.foot-base a { color: #cfd8d4; }

/* Phone and tablet */
@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav > a, .dd-btn { padding: 12px 0; font-size: 17px; }
  .nav > a.btn { justify-content: center; margin-top: 8px; padding: 12px; }
  .dd-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 8px; min-width: 0; }
  .dd:hover .dd-menu { display: none; } .dd.open .dd-menu { display: block; }
  .hero-in, .band-in, .promo-in, .row { grid-template-columns: 1fr; }
  .hero-in { padding: 36px 24px 0; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-art .phone { width: 260px; }
  .float { display: none; }
  .row { gap: 24px; padding: 32px 0; }
  .row:nth-child(even) .row-art { order: 0; }
  .row-art { min-height: 360px; }
  .row-art img { width: 220px; }
  .plans, .grid3 { grid-template-columns: 1fr; max-width: 520px; }
  .band-in { text-align: center; padding-top: 50px; }
  .stores { justify-content: center; }
  .strip-in { flex-direction: column; text-align: center; }
  .strip-in .btn { margin: 0; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .promo-text { padding: 32px 24px; }
}

/* Legal pages: privacy, terms, delete account */
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.legal-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; color: var(--ink, #1c2422); text-decoration: none; }
.legal-tabs a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.legal-meta { font-size: 15px !important; color: #66736f !important; }
.legal .short { background: var(--brand-soft); border-radius: 18px; padding: 6px 22px 10px; margin: 22px 0 10px; }
.legal .short h3 { margin-top: 16px; }
.legal h2 { scroll-margin-top: 90px; border-top: 1px solid var(--line); padding-top: 28px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--soft); font-size: 15px; }
.legal .contact-card { background: var(--soft); border-radius: 18px; padding: 8px 22px; }
@media (max-width: 600px) { .legal table { font-size: 14px; } .legal th, .legal td { padding: 8px 6px; } }
