@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/allclima/fonts/BricolageGrotesque_800ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/allclima/fonts/BricolageGrotesque_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url("/allclima/fonts/BricolageGrotesque_500Medium.ttf") format("truetype"); }

:root {
  --sky: #58B5D0; --ink: #0C242D; --sun: #FFD23F; --moon: #EFE9D6; --coral: #E9805C; --paper: #F4EFE4;
  --night: #316372; --deep: #0F2530; --wet: #93B2BD; --panel: #E9E3D4; --rule: #CFC8B6; --soft: #586A70; --pale: #8DA3A9;
  --dash: rgb(244 239 228 / 0.6);
  --side: clamp(20px, 6vw, 88px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1.0625rem/1.5 "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
h1, h2 { margin: 0; font-weight: 800; line-height: 0.96; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }
i { display: block; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--side); background: var(--sky); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: clamp(1.375rem, 5.6vw, 1.75rem); line-height: 1; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.mark { display: block; border-radius: 10px; }
nav { display: flex; gap: 6px; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.08em; }
nav a, nav span { padding: 7px 11px; border: 2px solid var(--ink); text-decoration: none; }
nav a:hover { background: var(--paper); }
nav span { background: var(--ink); color: var(--paper); }

/* The hero has two rows. The line between them is the horizon. */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); column-gap: clamp(32px, 6vw, 96px); padding: 0 var(--side); overflow: hidden; }
.hero::before, .hero::after { content: ""; grid-column: 1 / -1; margin: 0 calc(var(--side) * -1); z-index: -1; }
.hero::before { grid-row: 1; background: var(--sky); }
.hero::after { grid-row: 2; background: var(--ink); }
.above, .below { position: relative; z-index: 1; grid-column: 1; }
.above { grid-row: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(40px, 7vw, 104px) 0 clamp(14px, 1.8vw, 26px); }
.below { grid-row: 2; padding: clamp(24px, 3vw, 44px) 0 clamp(44px, 6vw, 88px); color: var(--paper); }
.horizon { grid-column: 2; grid-row: 1 / 3; align-self: center; padding: clamp(28px, 4vw, 56px) 0; }
.horizon .phone { position: relative; z-index: 2; }

h1 { font-size: clamp(3rem, 6.9vw, 7.5rem); }
h1 span { display: block; white-space: nowrap; }
.lede { max-width: 31em; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); color: var(--moon); }

/* The point of the orbit is on the horizon. --r is the radius of the dashed circle. */
.orbit { --r: clamp(220px, 21vw, 310px); position: relative; z-index: 0; grid-column: 2; grid-row: 1; align-self: end; justify-self: center; width: 0; height: 0; }
.orbit .ring { position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border: 2px dashed var(--dash); border-radius: 50%; }
.orbit .ring i { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%; }
.orbit .sun { width: 24%; background: var(--sun); transform: translate(-50%, -50%) translate(calc(var(--r) * -0.866), calc(var(--r) * -0.5)); }
.orbit .moon { width: 15%; background: var(--moon); transform: translate(-50%, -50%) translate(calc(var(--r) * 0.766), calc(var(--r) * 0.643)); }
.orbit .cloud { position: absolute; height: calc(var(--r) * 0.12); border-radius: 999px; background: rgb(255 255 255 / 0.92); }
.orbit .cloud:nth-child(1) { left: calc(var(--r) * -1.62); top: calc(var(--r) * -1.02); width: calc(var(--r) * 0.8); }
.orbit .cloud:nth-child(2) { left: calc(var(--r) * 0.5); top: calc(var(--r) * -1.3); width: calc(var(--r) * 0.62); opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
  .orbit .ring { animation: rise 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  @keyframes rise { from { transform: rotate(-26deg); } to { transform: none; } }
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-block; padding: 15px 22px; border: 2px solid currentColor; font-weight: 700; line-height: 1.1; text-decoration: none; }
.button.solid { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.button:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.note { margin-top: 14px; font-size: 0.9375rem; color: var(--pale); }

.phone { margin: 0 auto; width: min(100%, 330px); }
.phone img { display: block; width: 100%; height: auto; border: 9px solid var(--ink); border-radius: 13% / 6%; background: var(--ink); box-shadow: 0 0 0 2px rgb(244 239 228 / 0.35); }

/* The numbers look like the list of hours in the app. The first one is the selected hour. */
.strip { border-bottom: 2px solid var(--ink); }
.strip ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0 var(--side); list-style: none; }
.strip li { position: relative; padding: clamp(22px, 3vw, 36px) clamp(12px, 2vw, 28px); border-left: 1px solid var(--rule); }
.strip li:first-child { background: var(--panel); border-left: 0; }
.strip li:first-child::before { content: ""; position: absolute; top: 0; left: clamp(12px, 2vw, 28px); border: 9px solid transparent; border-top-color: var(--ink); }
.strip strong { display: block; font-weight: 800; font-size: clamp(2.25rem, 5.4vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.strip span { display: block; margin-top: 6px; font-weight: 700; font-size: 0.8125rem; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }

.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(44px, 7vw, 104px) var(--side); }
.feature + .feature { border-top: 1px solid var(--rule); }
.feature.flip .words { order: 2; }
.when { font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.feature h2 { margin-top: 12px; font-size: clamp(2.25rem, 4.6vw, 4.25rem); }
.feature .words > p:not(.when) { max-width: 30em; margin-top: 18px; font-size: 1.125rem; color: var(--soft); }
.feature ul { max-width: 30em; margin: 22px 0 0; padding: 0; list-style: none; }
.feature li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--rule); font-weight: 700; }
.feature li::before { content: ""; position: absolute; left: 2px; top: 1.2em; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }

/* A stage is a small sky with its own horizon. The phone stands behind the horizon line of the page. */
.stage { --tone: var(--sky); --ground: var(--ink); --body: var(--sun); --turn: 0.6; position: relative; isolation: isolate; container-type: inline-size; overflow: hidden; padding-top: clamp(28px, 4vw, 56px); background: linear-gradient(var(--tone) 0 80%, var(--ground) 80%); }
.stage .phone { position: relative; z-index: 2; width: min(66%, 330px); margin-bottom: -22%; }
.stage .ring { position: absolute; left: 4cqw; top: 80%; width: 92cqw; height: 92cqw; margin-top: -46cqw; border: 2px dashed var(--dash); border-radius: 50%; }
.stage .disc { position: absolute; left: 50%; top: 80%; width: 15cqw; height: 15cqw; border-radius: 50%; background: var(--body); transform: translate(-50%, -50%) translate(calc(46cqw * var(--x)), calc(-46cqw * var(--y))); }
.stage .cloud { position: absolute; z-index: 1; height: 5cqw; border-radius: 999px; background: rgb(255 255 255 / 0.9); }
.stage .cloud:nth-of-type(3) { left: 5cqw; top: 9cqw; width: 26cqw; }
.stage .cloud:nth-of-type(4) { right: 3cqw; top: 26cqw; width: 19cqw; opacity: 0.6; }
.day { --x: -0.906; --y: 0.423; }
.day .cloud:nth-of-type(3) { left: auto; right: 6cqw; top: 8cqw; }
.day .cloud:nth-of-type(4) { display: none; }
.wet { --tone: var(--wet); --body: rgb(255 210 63 / 0.5); --x: 0.906; --y: 0.423; }
.dusk { --tone: var(--coral); --x: -0.985; --y: 0.174; }
.dusk .cloud { display: none; }
.evening { --tone: var(--night); --body: var(--moon); --x: 0.866; --y: 0.5; }
.night { --tone: var(--deep); --ground: var(--night); --body: var(--moon); --x: -0.94; --y: 0.342; }
.evening .cloud, .night .cloud { display: none; }
.night, .closing { background-image: radial-gradient(var(--moon) 1.5px, transparent 2px), radial-gradient(var(--moon) 1px, transparent 1.5px), radial-gradient(var(--moon) 1px, transparent 1.5px), linear-gradient(var(--tone) 0 80%, var(--ground) 80%); background-size: 233px 197px, 171px 263px, 311px 149px, auto; background-position: 30px 24px, 96px 131px, 201px 77px, 0 0; }

.questions { padding: clamp(44px, 7vw, 104px) var(--side); background: var(--panel); }
.questions h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); }
.questions dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); margin: clamp(20px, 3vw, 36px) 0 0; }
.questions div { padding: 20px 0; border-top: 1px solid var(--rule); }
dt { font-weight: 700; font-size: clamp(1.1875rem, 1.8vw, 1.375rem); line-height: 1.2; }
dd { margin: 8px 0 0; color: var(--soft); }

/* The closing is the night sky. Its horizon is its lower edge. */
.closing { --tone: var(--deep); --ground: var(--deep); --r: clamp(170px, 24vw, 340px); position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 9vw, 128px) var(--side); color: var(--paper); }
.closing .words { position: relative; z-index: 1; max-width: 40rem; }
.closing h2 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
.closing .ring { position: absolute; z-index: 0; right: calc(var(--side) + var(--r) * -0.4); bottom: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border: 2px dashed var(--dash); border-radius: 50%; }
.closing .disc { position: absolute; z-index: 0; right: calc(var(--side) + var(--r) * 0.6); bottom: 0; width: calc(var(--r) * 0.34); aspect-ratio: 1; border-radius: 50%; background: var(--moon); transform: translate(50%, 50%) translate(calc(var(--r) * 0.5), calc(var(--r) * -0.866)); }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px var(--side) 40px; background: var(--ink); font-size: 0.9375rem; color: var(--pale); }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero::after { grid-row: 3; }
  .above { padding-top: 36px; }
  .horizon { grid-column: 1; grid-row: 2; margin: 0 calc(var(--side) * -1); padding: 0; background: linear-gradient(var(--sky) 0 50%, var(--ink) 50%); }
  .horizon .phone { width: min(62%, 280px); }
  .orbit { --r: min(46vw, 210px); grid-column: 1; grid-row: 2; align-self: center; }
  .orbit .cloud { display: none; }
  .orbit .sun { width: 17%; }
  .orbit .moon { width: 12%; }
  .below { grid-row: 3; }
  h1 { font-size: clamp(2.5rem, 12.5vw, 5rem); }
  .strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .strip li { padding-left: var(--side); border-top: 1px solid var(--rule); }
  .strip li:nth-child(odd) { border-left: 0; }
  .strip li:nth-child(-n + 2) { border-top: 0; }
  .strip li:first-child::before { left: var(--side); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .words { order: 0; }
  .questions dl { grid-template-columns: minmax(0, 1fr); }
  .closing { padding-bottom: clamp(150px, 46vw, 260px); }
}
